Skip to content

Commit a9ab0f5

Browse files
committed
test(linter/plugins): expand tests for module resolution of plugins
1 parent 74e52f3 commit a9ab0f5

File tree

8 files changed

+113
-3
lines changed

8 files changed

+113
-3
lines changed

apps/oxlint/test/fixtures/load_paths/.oxlintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"./plugins/plugin7",
1010
"plugin8",
1111
"plugin9",
12-
"plugin10"
12+
"plugin10",
13+
"plugin11",
14+
"plugin12",
15+
"plugin13"
1316
],
1417
"rules": {
1518
"plugin1/no-debugger": "error",
@@ -21,6 +24,9 @@
2124
"plugin7/no-debugger": "error",
2225
"plugin8/no-debugger": "error",
2326
"plugin9/no-debugger": "error",
24-
"plugin10/no-debugger": "error"
27+
"plugin10/no-debugger": "error",
28+
"plugin11/no-debugger": "error",
29+
"plugin12/no-debugger": "error",
30+
"plugin13/no-debugger": "error"
2531
}
2632
}

apps/oxlint/test/fixtures/load_paths/node_modules/plugin11/index.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/node_modules/plugin11/package.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/node_modules/plugin12/index.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/node_modules/plugin12/package.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/node_modules/plugin13/index.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/node_modules/plugin13/package.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/oxlint/test/fixtures/load_paths/output.snap.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
: ^^^^^^^^^
2323
`----
2424
25+
x plugin11(no-debugger): Unexpected Debugger Statement
26+
,-[files/index.js:1:1]
27+
1 | debugger;
28+
: ^^^^^^^^^
29+
`----
30+
31+
x plugin12(no-debugger): Unexpected Debugger Statement
32+
,-[files/index.js:1:1]
33+
1 | debugger;
34+
: ^^^^^^^^^
35+
`----
36+
37+
x plugin13(no-debugger): Unexpected Debugger Statement
38+
,-[files/index.js:1:1]
39+
1 | debugger;
40+
: ^^^^^^^^^
41+
`----
42+
2543
x plugin2(no-debugger): Unexpected Debugger Statement
2644
,-[files/index.js:1:1]
2745
1 | debugger;
@@ -70,7 +88,7 @@
7088
: ^^^^^^^^^
7189
`----
7290
73-
Found 1 warning and 10 errors.
91+
Found 1 warning and 13 errors.
7492
Finished in Xms on 1 file using X threads.
7593
```
7694

0 commit comments

Comments
 (0)