Skip to content

Commit fe6978d

Browse files
committed
[meta] better eccheck command
1 parent f79acdf commit fe6978d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"scripts": {
4747
"prepublishOnly": "safe-publish-latest",
4848
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
49-
"prelint": "eclint check",
50-
"lint": "eslint . bin/*",
49+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
50+
"lint": "eslint --ext .js,.cjs,.mjs . bin/*",
5151
"pretest": "npm run lint",
5252
"test": "npm run tests-only",
5353
"posttest": "aud --production",

0 commit comments

Comments
 (0)