We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prelint
.git
1 parent e6f091a commit 5f78134Copy full SHA for 5f78134
package.json
@@ -65,7 +65,8 @@
65
"scripts": {
66
"prepublishOnly": "safe-publish-latest",
67
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
68
- "prelint": "eclint check $(git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js')",
+ "prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'",
69
+ "prelint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"",
70
"lint": "eslint --ext .js,.cjs,.mjs . bin/*",
71
"pretest": "npm run lint",
72
"test": "npm run tests-only",
0 commit comments