Skip to content

Commit bc4666b

Browse files
committed
[meta] better eccheck command
1 parent 7b00833 commit bc4666b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"scripts": {
6464
"prepublishOnly": "safe-publish-latest",
6565
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
66-
"prelint": "eclint check",
66+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
6767
"lint": "eslint --ext .js,.cjs,.mjs . bin/*",
6868
"pretest": "npm run lint",
6969
"test": "npm run tests-only",

0 commit comments

Comments
 (0)