Skip to content

Commit 40d16e3

Browse files
committed
[Tests] fix linting
1 parent 4830ec0 commit 40d16e3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.eslintrc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
"extends": "@ljharb",
55

6+
"ignorePatterns": [
7+
"test/resolver/malformed_package_json/package.json",
8+
"test/list-exports/**",
9+
],
10+
611
"rules": {
712
"indent": [2, 4],
813
"strict": 0,
@@ -58,8 +63,4 @@
5863
},
5964
},
6065
],
61-
62-
"ignorePatterns": [
63-
"./test/resolver/malformed_package_json/package.json",
64-
],
6566
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"prepack": "npmignore --auto --commentLines=autogenerated",
3333
"prepublishOnly": "safe-publish-latest",
3434
"prepublish": "not-in-publish || npm run prepublishOnly",
35-
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
35+
"prelint": "eclint check $(git ls-files | grep -Ev test\/list-exports$ | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
3636
"lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**'",
3737
"pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
3838
"tests-only": "tape test/*.js",

0 commit comments

Comments
 (0)