You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(linter)!: enable --experimental-nested-config by default and add --disable-nested-config option (#9760)
- closes#9755
- Makes the `--experimental-nested-config` behavior the default.
- Includes a bug fix where nested configs didn't work properly with `--fix`.
- Adds a `--disable-nested-config` option to just read the config file from the current directory and skip looking for `.oxlintrc.json` files in directories.
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'x' is declared but never used. Unused variables should start with a '_'.
10
+
,-[overrides/test.ts:1:7]
11
+
1|const x:any=3;
12
+
: |
13
+
: `-- 'x' is declared here
14
+
`----
15
+
help: Considerremovingthisdeclaration.
16
+
17
+
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Function 'component' is declared but never used.
18
+
,-[overrides/test.tsx:1:10]
19
+
1|function component():any {
20
+
: ^^^^|^^^^
21
+
: `-- 'component' is declared here
22
+
2 | return <a>click here</a>;
23
+
`----
24
+
help: Considerremovingthisdeclaration.
25
+
26
+
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\eslint(no-debugger)]8;;\: `debugger` statement is not allowed
27
+
,-[overrides_same_directory/config/test.js:1:1]
28
+
1|debugger;
29
+
: ^^^^^^^^^
30
+
`----
31
+
help: Delete this code.
32
+
33
+
Found 3 warnings and 0 errors.
34
+
Finished in <variable>ms on 4 files with 99 rules using 1 threads.
Copy file name to clipboardexpand all lines: apps/oxlint/src/snapshots/fixtures__extends_config_overrides@oxlint.snap
+19-13
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,31 @@ arguments: overrides
6
6
workingdirectory: fixtures/extends_config
7
7
----------
8
8
9
-
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'x' is declared but never used. Unused variables should start with a '_'.
10
-
,-[overrides/test.ts:1:7]
9
+
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any.html\typescript-eslint(no-explicit-any)]8;;\: Unexpected any. Specify a different type.
10
+
,-[overrides/test.ts:1:10]
11
11
1|const x:any=3;
12
-
: |
13
-
: `-- 'x' is declared here
12
+
: ^^^
14
13
`----
15
-
help: Considerremovingthisdeclaration.
14
+
help: Use `unknown` instead, this will force you to explicitly, and safely, assert the type is correct.
16
15
17
-
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Function 'component' is declared but never used.
18
-
,-[overrides/test.tsx:1:10]
16
+
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any.html\typescript-eslint(no-explicit-any)]8;;\:Unexpected any. Specify a different type.
17
+
,-[overrides/test.tsx:1:23]
19
18
1 | function component(): any {
20
-
: ^^^^|^^^^
21
-
: `-- 'component' is declared here
19
+
: ^^^
22
20
2|return <a>click here</a>;
23
21
`----
24
-
help: Considerremovingthisdeclaration.
22
+
help: Use `unknown` instead, this will force you to explicitly, and safely, assert the type is correct.
25
23
26
-
Found2warningsand0errors.
27
-
Finishedin <variable>ms on 2 files with 100 rules using 1 threads.
24
+
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.html\eslint-plugin-jsx-a11y(anchor-ambiguous-text)]8;;\: Unexpected ambagious anchor link text.
25
+
,-[overrides/test.tsx:2:10]
26
+
1 | function component(): any {
27
+
2|return <a>click here</a>;
28
+
: ^^^^^^^^^^^^^^^^^
29
+
3|}
30
+
`----
31
+
32
+
Found0warningsand3errors.
33
+
Finishedin <variable>ms on 2 files using 1 threads.
0 commit comments