Skip to content

Commit 6a9ada4

Browse files
committed
Enforce linter in npm test
1 parent d73a196 commit 6a9ada4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"build": "NODE_ENV=production webpack -p --config ./webpack.config.js",
2020
"build-bundle": "NODE_ENV=production webpack -p --config ./webpack.bundle.config.js",
2121
"watch": "webpack --config webpack.config.js --watch --progress",
22-
"test": "NODE_ENV=test node ./node_modules/.bin/_mocha --recursive --compilers js:babel-core/register",
22+
"test": "npm run just-test && npm run lint",
23+
"just-test": "NODE_ENV=test node ./node_modules/.bin/_mocha --recursive --compilers js:babel-core/register",
2324
"test:watch": "npm run test -- -w",
2425
"lint": "eslint src/ test/",
2526
"deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv",

0 commit comments

Comments
 (0)