[eslint config] [*] [tests] Only run eslint-find-rules on prepublish, not in tests.

This commit is contained in:
Jordan Harband
2016-06-04 17:29:47 -07:00
parent 3fb9db5a74
commit eb76edea32
2 changed files with 6 additions and 4 deletions

View File

@@ -6,8 +6,9 @@
"scripts": {
"lint": "eslint .",
"tests-only": "babel-tape-runner ./test/test-*.js",
"pretest": "eslint-find-rules --unused",
"test": "npm run --silent lint && npm run --silent tests-only",
"prepublish": "eslint-find-rules --unused && npm test",
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"travis": "npm run --silent test"
},
"repository": {

View File

@@ -6,8 +6,9 @@
"scripts": {
"lint": "eslint .",
"tests-only": "babel-tape-runner ./test/test-*.js",
"pretest": "eslint-find-rules --unused",
"test": "npm run --silent lint && npm run --silent tests-only",
"prepublish": "eslint-find-rules --unused && npm test",
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"travis": "cd ../eslint-config-airbnb-base && npm link && cd - && npm link eslint-config-airbnb-base && npm run --silent test ; npm unlink eslint-config-airbnb-base >/dev/null &"
},
"repository": {