Permalink
Browse files

chore(scripts): eslint ignore pattern by extension

  • Loading branch information...
1 parent 6a0c3fe commit 3e5ab59c7f81466d809a450bb83cf7258f66e2a3 @BarryThePenguin BarryThePenguin committed Mar 14, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 package.json
View
@@ -27,8 +27,8 @@
"build:dist": "webpack --progress --colors --set-env-NODE_ENV=development",
"build:prod": "webpack --progress --colors --set-env-NODE_ENV=production",
"build": "npm run build:dist & npm run build:prod",
- "eslint:test": "eslint -c other/test.eslintrc --ignore-pattern **/*.+(test|mock).js src/",
- "eslint:src": "eslint -c other/src.eslintrc --ignore-pattern !**/*.+(test|mock).js src/",
+ "eslint:test": "eslint -c other/test.eslintrc --ignore-pattern **/*.{test,mock}.js src/",
+ "eslint:src": "eslint -c other/src.eslintrc --ignore-pattern !**/*.{test,mock}.js src/",
"eslint": "npm run eslint:test -s && npm run eslint:src -s",
"test": "karma start --single-run --set-env-COVERAGE=true --set-env-NODE_ENV=test",
"test:watch": "karma start --set-env-COVERAGE=true --set-env-NODE_ENV=test",

0 comments on commit 3e5ab59

Please sign in to comment.