Skip to content

Commit 48896e8

Browse files
committed
[meta] ensure prelint works on windows
1 parent 7c6dbbd commit 48896e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"eslint": "=8.8.0",
4040
"falafel": "^2.2.4",
4141
"js-yaml": "^3.14.0",
42+
"npm-run-posix-or-windows": "^2.0.2",
4243
"safe-publish-latest": "^2.0.0",
4344
"tap": "^8.0.1",
4445
"tap-parser": "^3.0.5"
@@ -47,7 +48,9 @@
4748
"prepublishOnly": "safe-publish-latest",
4849
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
4950
"prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'",
50-
"prelint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"",
51+
"eclint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"",
52+
"eclint:windows": "eclint check *.js",
53+
"prelint": "npm-run-posix-or-windows eclint",
5154
"lint": "eslint --ext .js,.cjs,.mjs . bin/*",
5255
"pretest": "npm run lint",
5356
"test": "npm run tests-only",

0 commit comments

Comments
 (0)