Skip to content

Commit 2037fd8

Browse files
committed
[Tests] link eslint from the base config as well
1 parent 7dda84a commit 2037fd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/eslint-config-airbnb/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",
1212
"pretest": "npm run --silent lint",
1313
"test": "npm run --silent tests-only",
14-
"pretravis": "cd ../eslint-config-airbnb-base && npm install && npm link && cd - && npm link --no-save eslint-config-airbnb-base",
14+
"link:eslint": "cd node_modules/eslint && npm link && cd -",
15+
"pretravis": "npm run link:eslint && cd ../eslint-config-airbnb-base && npm link eslint && npm install && npm link && cd - && npm link --no-save eslint-config-airbnb-base",
1516
"travis": "npm run --silent test",
16-
"posttravis": "npm unlink --no-save eslint-config-airbnb-base >/dev/null &"
17+
"posttravis": "npm unlink --no-save eslint-config-airbnb-base eslint >/dev/null &"
1718
},
1819
"repository": {
1920
"type": "git",

0 commit comments

Comments
 (0)