Skip to content

Commit e88a2fc

Browse files
committed
tests(linter): explicitly disable correctness for clarity
1 parent cd354d4 commit e88a2fc

File tree

7 files changed

+7
-18
lines changed

7 files changed

+7
-18
lines changed

apps/oxlint/fixtures/nested_config/.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"categories": { "correctness": "off"},
23
"rules": {
34
"no-console": "error",
45
"no-debugger": "error"

apps/oxlint/fixtures/nested_config/oxlint-no-console.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"categories": { "correctness": "off" },
23
"rules": {
34
"no-console": "error",
45
"no-debugger": "off"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"categories": { "correctness": "off"},
23
"rules": {}
34
}

apps/oxlint/src/snapshots/fixtures__nested_config_--config [email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ working directory: fixtures/nested_config
3737
help: Delete this console statement.
3838

3939
Found 0 warnings and 4 errors.
40-
Finished in <variable>ms on 7 files with 101 rules using 1 threads.
40+
Finished in <variable>ms on 7 files with 1 rules using 1 threads.
4141
----------
4242
CLI result: LintFoundErrors
4343
----------

apps/oxlint/src/snapshots/fixtures__nested_config_-A no-console --config [email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: -A no-console --config oxlint-no-console.json
66
working directory: fixtures/nested_config
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 7 files with 100 rules using 1 threads.
9+
Finished in <variable>ms on 7 files with 0 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

apps/oxlint/src/snapshots/fixtures__nested_config_-A [email protected]

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,14 @@ working directory: fixtures/nested_config
1313
`----
1414
help: Remove the debugger statement
1515
16-
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\eslint(no-debugger)]8;;\: `debugger` statement is not allowed
17-
,-[package1-empty-config/debugger.js:1:1]
18-
1 | debugger;
19-
: ^^^^^^^^^
20-
`----
21-
help: Remove the debugger statement
22-
2316
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\eslint(no-debugger)]8;;\: `debugger` statement is not allowed
2417
,-[package2-no-config/debugger.js:1:1]
2518
1 | debugger;
2619
: ^^^^^^^^^
2720
`----
2821
help: Remove the debugger statement
2922

30-
Found 1 warning and 2 errors.
23+
Found 0 warnings and 2 errors.
3124
Finished in <variable>ms on 7 files using 1 threads.
3225
----------
3326
CLI result: LintFoundErrors

apps/oxlint/src/snapshots/[email protected]

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ working directory: fixtures/nested_config
2020
`----
2121
help: Remove the debugger statement
2222

23-
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\eslint(no-debugger)]8;;\: `debugger` statement is not allowed
24-
,-[package1-empty-config/debugger.js:1:1]
25-
1 | debugger;
26-
: ^^^^^^^^^
27-
`----
28-
help: Remove the debugger statement
29-
3023
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-console.html\eslint(no-console)]8;;\: Unexpected console statement.
3124
,-[package2-no-config/console.ts:1:1]
3225
1 | console.log("test");
@@ -50,7 +43,7 @@ working directory: fixtures/nested_config
5043
`----
5144
help: Delete this console statement.
5245
53-
Found 1 warning and 5 errors.
46+
Found 0 warnings and 5 errors.
5447
Finished in <variable>ms on 7 files using 1 threads.
5548
----------
5649
CLI result: LintFoundErrors

0 commit comments

Comments
 (0)