Add package variable for eslintPaths
"scripts": {
"setup": "git submodule update --init --recursive && npm i",
"test": "truffle test",
- "js:lint": "eslint ./test/*Test.js",
- "js:lint:fix": "eslint --fix ./test/**/*.js ./migrations"
+ "js:lint": "eslint ${npm_package_config_eslintPaths}",
+ "js:lint:fix": "eslint --fix ${npm_package_config_eslintPaths}"
+ },
+ "config": {
+ "eslintPaths": "./test/**/*.js ./migrations"
},
"author": "James Prestwich",
"license": "UNLICENSED",
