Skip to content

Commit 2d477b0

Browse files
committed
Added consistent linting pattern to all packages
refs: https://github.com/TryGhost/Toolbox/issues/188 - some of our older packages used a pattern for linting which missed using test config for linting tests - we need this to be consistent so that we can add more eslint rules for testing - two packages also didn't use the lib pattern, which made the lint pattern error - so this was fixed as well
1 parent 6e9ff93 commit 2d477b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/members-csv/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"dev": "echo \"Implement me!\"",
1010
"test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
1111
"test": "yarn test:unit",
12-
"lint": "eslint . --ext .js --cache"
12+
"lint:code": "eslint *.js lib/ --ext .js --cache",
13+
"lint": "yarn lint:code && yarn lint:test",
14+
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache"
1315
},
1416
"files": [
1517
"index.js",

0 commit comments

Comments
 (0)