forked from oxc-project/oxc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixtures__extends_config_overrides@oxlint.snap
38 lines (34 loc) · 1.51 KB
/
fixtures__extends_config_overrides@oxlint.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
source: apps/oxlint/src/tester.rs
snapshot_kind: text
---
##########
arguments: overrides
working directory: fixtures/extends_config
----------
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.
,-[overrides/test.ts:1:10]
1 | const x: any = 3;
: ^^^
`----
help: Use `unknown` instead, this will force you to explicitly, and safely, assert the type is correct.
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.
,-[overrides/test.tsx:1:23]
1 | function component(): any {
: ^^^
2 | return <a>click here</a>;
`----
help: Use `unknown` instead, this will force you to explicitly, and safely, assert the type is correct.
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.html\eslint-plugin-jsx-a11y(anchor-ambiguous-text)]8;;\: Ambiguous text within anchor, screen reader users rely on link text for context.
,-[overrides/test.tsx:2:10]
1 | function component(): any {
2 | return <a>click here</a>;
: ^^^^^^^^^^^^^^^^^
3 | }
`----
help: Avoid using ambiguous text like "click here", replace it with more descriptive text that provides context.
Found 0 warnings and 3 errors.
Finished in <variable>ms on 2 files using 1 threads.
----------
CLI result: LintFoundErrors
----------