Skip to content

Commit b4377fb

Browse files
committed
[meta] better eclint command
1 parent 34b5bc3 commit b4377fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/eslint-config-airbnb-base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"./package.json": "./package.json"
1919
},
2020
"scripts": {
21-
"prelint": "eclint check * rules/* test/*",
21+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
2222
"lint": "eslint --report-unused-disable-directives .",
2323
"pretests-only": "node ./test/requires",
2424
"tests-only": "babel-tape-runner ./test/test-*.js",

packages/eslint-config-airbnb/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"./package.json": "./package.json"
1616
},
1717
"scripts": {
18-
"prelint": "eclint check * rules/* test/*",
18+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
1919
"lint": "eslint .",
2020
"pretests-only": "node ./test/requires",
2121
"tests-only": "babel-tape-runner ./test/test-*.js",

0 commit comments

Comments
 (0)