mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
chore(linter): clean up unused snapshots
This commit is contained in:
parent
ed87cbf1f0
commit
7f114d4d98
41 changed files with 0 additions and 853 deletions
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: anchor_has_content
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(anchor-has-content): Missing accessible content when using `a` elements.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: anchor_is_valid
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(anchor-is-valid): Missing `href` attribute for the `a` element.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: aria_role
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(aria-role): Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
||||
|
|
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: consistent_type_exports
|
||||
---
|
||||
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||
╭─[consistent_type_exports.tsx:1:1]
|
||||
1 │ type foo = number; export {foo}
|
||||
· ───
|
||||
╰────
|
||||
help: Consistent type export
|
||||
|
||||
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||
╭─[consistent_type_exports.tsx:4:1]
|
||||
4 │ }
|
||||
5 │ export {TypeNS}
|
||||
· ──────
|
||||
6 │
|
||||
╰────
|
||||
help: Consistent type export
|
||||
|
||||
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||
╭─[consistent_type_exports.tsx:7:1]
|
||||
7 │
|
||||
8 │ export { Alias, IFace, TypeNS };
|
||||
· ─────
|
||||
╰────
|
||||
help: Consistent type export
|
||||
|
||||
⚠ typescript-eslint(consistent-type-exports): Consistent type exports
|
||||
╭─[consistent_type_exports.tsx:7:1]
|
||||
7 │
|
||||
8 │ export { Alias, IFace, TypeNS };
|
||||
· ─────
|
||||
╰────
|
||||
help: Consistent type export
|
||||
|
||||
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: export
|
||||
---
|
||||
⚠ eslint-plugin-import(export): Multiple exports of name 'foo'.
|
||||
╭─[index.js:1:1]
|
||||
1 │ let foo; export { foo }; export * from "./export-all"
|
||||
· ───
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(export): No named exports found in module './default-export'
|
||||
╭─[index.js:1:1]
|
||||
1 │ export * from "./default-export"
|
||||
· ──────────────────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(export): Multiple exports of name 'foo'.
|
||||
╭─[index.js:1:1]
|
||||
1 │ let foo; export { foo as "foo" }; export * from "./export-all"
|
||||
· ─────
|
||||
╰────
|
||||
|
||||
× Identifier `Foo` has already been declared
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ export type Foo = string;
|
||||
· ─┬─
|
||||
· ╰── `Foo` has already been declared here
|
||||
3 │ export type Foo = number;
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
4 │
|
||||
╰────
|
||||
|
||||
× Identifier `a` has already been declared
|
||||
╭─[index.js:3:1]
|
||||
3 │ export namespace Foo {
|
||||
4 │ export const a = 2;
|
||||
· ┬
|
||||
· ╰── `a` has already been declared here
|
||||
5 │ export const a = 3;
|
||||
· ┬
|
||||
· ╰── It can not be redeclared here
|
||||
6 │ }
|
||||
╰────
|
||||
|
||||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ declare module 'foo' {
|
||||
· ─
|
||||
3 │ const Foo = 1;
|
||||
╰────
|
||||
help: Try insert a semicolon here
|
||||
|
||||
× Identifier `Foo` has already been declared
|
||||
╭─[index.js:3:1]
|
||||
3 │ export namespace Bar {
|
||||
4 │ export const Foo = 1;
|
||||
· ─┬─
|
||||
· ╰── `Foo` has already been declared here
|
||||
5 │ export const Foo = 2;
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
6 │ }
|
||||
╰────
|
||||
|
||||
× Identifier `Bar` has already been declared
|
||||
╭─[index.js:7:1]
|
||||
7 │ export namespace Baz {
|
||||
8 │ export const Bar = 3;
|
||||
· ─┬─
|
||||
· ╰── `Bar` has already been declared here
|
||||
9 │ export const Bar = 4;
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
10 │ }
|
||||
╰────
|
||||
|
||||
× Identifier `Foo` has already been declared
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ export class Foo { }
|
||||
· ─┬─
|
||||
· ╰── `Foo` has already been declared here
|
||||
3 │ export class Foo { }
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
4 │ export namespace Foo { }
|
||||
╰────
|
||||
|
||||
× Identifier `Foo` has already been declared
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ export enum Foo { }
|
||||
· ─┬─
|
||||
· ╰── `Foo` has already been declared here
|
||||
3 │ export class Foo { }
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
4 │ export namespace Foo { }
|
||||
╰────
|
||||
|
||||
× Identifier `Foo` has already been declared
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ export const Foo = 'bar';
|
||||
· ─┬─
|
||||
· ╰── `Foo` has already been declared here
|
||||
3 │ export class Foo { }
|
||||
· ─┬─
|
||||
· ╰── It can not be redeclared here
|
||||
4 │ export namespace Foo { }
|
||||
╰────
|
||||
|
||||
× Unexpected token
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ export function Foo();
|
||||
· ─
|
||||
3 │ export class Foo { }
|
||||
╰────
|
||||
|
||||
× Unexpected token
|
||||
╭─[index.js:2:1]
|
||||
2 │ export const Foo = 'bar';
|
||||
3 │ export function Foo();
|
||||
· ─
|
||||
4 │ export namespace Foo { }
|
||||
╰────
|
||||
|
||||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||||
╭─[index.js:1:1]
|
||||
1 │
|
||||
2 │ declare module "a" {
|
||||
· ─
|
||||
3 │ const Foo = 1;
|
||||
╰────
|
||||
help: Try insert a semicolon here
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: html_has_lang
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(html-has-lang): Missing lang attribute.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 143
|
||||
expression: img_redundant_alt
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(img-redundant-alt): Redundant alt attribute.
|
||||
|
|
|
|||
|
|
@ -1,66 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: jsx_no_comment_text_nodes
|
||||
---
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:3:1]
|
||||
3 │ render() {
|
||||
4 │ return (<div>// invalid</div>);
|
||||
· ──────────
|
||||
5 │ }
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:3:1]
|
||||
3 │ render() {
|
||||
4 │ return (<>// invalid</>);
|
||||
· ──────────
|
||||
5 │ }
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:3:1]
|
||||
3 │ render() {
|
||||
4 │ return (<div>/* invalid */</div>);
|
||||
· ─────────────
|
||||
5 │ }
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:4:1]
|
||||
4 │ return (
|
||||
5 │ ╭─▶ <div>
|
||||
6 │ │ // invalid
|
||||
7 │ ╰─▶ </div>
|
||||
8 │ );
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:4:1]
|
||||
4 │ return (
|
||||
5 │ ╭─▶ <div>
|
||||
6 │ │ asdjfl
|
||||
7 │ │ /* invalid */
|
||||
8 │ │ foo
|
||||
9 │ ╰─▶ </div>
|
||||
10 │ );
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:5:1]
|
||||
5 │ <div>
|
||||
6 │ ╭─▶ {'asdjfl'}
|
||||
7 │ │ // invalid
|
||||
8 │ ╰─▶ {'foo'}
|
||||
9 │ </div>
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-react(jsx-no-comment-TextNodes): Comments inside children section of tag should be placed inside braces
|
||||
╭─[jsx_no_comment_text_nodes.tsx:2:1]
|
||||
2 │ const Component2 = () => {
|
||||
3 │ return <span>/*</span>;
|
||||
· ──
|
||||
4 │ };
|
||||
╰────
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: jsx_no_undef
|
||||
---
|
||||
⚠ eslint-plugin-react(jsx-no-undef): Disallow undeclared variables in JSX
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: lang
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(lang): Lang attribute must have a valid value.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: max_expects
|
||||
---
|
||||
⚠ eslint-plugin-jest(max-expects): Enforces a maximum number assertion calls in a test body.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: no_amd
|
||||
---
|
||||
⚠ eslint-plugin-import(no-amd): Do not use AMD `require` and `define` calls.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 130
|
||||
expression: no_autofocus
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(no-autofocus): The `autofocus` attribute is found here, which can cause usability issues for sighted and non-sighted users
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_dangerously_set_inner_html
|
||||
---
|
||||
⚠ eslint-plugin-react(no-danger): Do not use `dangerouslySetInnerHTML` prop
|
||||
╭─[no_dangerously_set_inner_html.tsx:1:1]
|
||||
1 │ <div dangerouslySetInnerHTML={{ __html: "" }}></div>;
|
||||
· ───────────────────────
|
||||
╰────
|
||||
help: `dangerouslySetInnerHTML` is a way to inject HTML into your React component. This is dangerous because it can easily lead to XSS vulnerabilities.
|
||||
|
||||
⚠ eslint-plugin-react(no-danger): Do not use `dangerouslySetInnerHTML` prop
|
||||
╭─[no_dangerously_set_inner_html.tsx:1:1]
|
||||
1 │ <button dangerouslySetInnerHTML={{ __html: "baz" }}>Foo</button>;
|
||||
· ───────────────────────
|
||||
╰────
|
||||
help: `dangerouslySetInnerHTML` is a way to inject HTML into your React component. This is dangerous because it can easily lead to XSS vulnerabilities.
|
||||
|
||||
⚠ eslint-plugin-react(no-danger): Do not use `dangerouslySetInnerHTML` prop
|
||||
╭─[no_dangerously_set_inner_html.tsx:1:1]
|
||||
1 │ React.createElement("div", { dangerouslySetInnerHTML: { __html: "" } });
|
||||
· ───────────────────────
|
||||
╰────
|
||||
help: `dangerouslySetInnerHTML` is a way to inject HTML into your React component. This is dangerous because it can easily lead to XSS vulnerabilities.
|
||||
|
||||
⚠ eslint-plugin-react(no-danger): Do not use `dangerouslySetInnerHTML` prop
|
||||
╭─[no_dangerously_set_inner_html.tsx:1:1]
|
||||
1 │ React.createElement("button", { dangerouslySetInnerHTML: { __html: "baz" } }, "Foo");
|
||||
· ───────────────────────
|
||||
╰────
|
||||
help: `dangerouslySetInnerHTML` is a way to inject HTML into your React component. This is dangerous because it can easily lead to XSS vulnerabilities.
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: no_deprecated_functions
|
||||
---
|
||||
⚠ eslint-plugin-jest(no-deprecated-functions): Disallow use of deprecated functions
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_direct_mutation_state
|
||||
---
|
||||
⚠ eslint-plugin-react(no-direct-mutation-state): never mutate this.state directly.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_distracting_elements
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(no-distracting-elements): Do not use <marquee> or <blink> elements as they can create visual accessibility issues and are deprecated.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 80
|
||||
expression: no_empty_character_class
|
||||
---
|
||||
⚠ eslint(no-empty-character-class): Empty character class
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 80
|
||||
expression: no_extra_boolean_cast
|
||||
---
|
||||
⚠ eslint(no-extra-boolean-cast): Redundant double negation
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 105
|
||||
expression: no_find_dom_node
|
||||
---
|
||||
⚠ eslint-plugin-react(no-find-dom-node): Unexpected call to `findDOMNode`.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: no_hooks
|
||||
---
|
||||
⚠ eslint-plugin-jest(no-hooks): Disallow setup and teardown hooks.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_irregular_whitespace
|
||||
---
|
||||
⚠ eslint(no-irregular-whitespace): Unexpected irregular whitespace
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_jsx_as_prop
|
||||
---
|
||||
⚠ eslint-plugin-react-perf(no-jsx-as-prop): JSX attribute values should not contain other JSX.
|
||||
╭─[no_jsx_as_prop.tsx:1:1]
|
||||
1 │ <Item jsx={<SubItem />} />
|
||||
· ───────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-jsx-as-prop): JSX attribute values should not contain other JSX.
|
||||
╭─[no_jsx_as_prop.tsx:1:1]
|
||||
1 │ <Item jsx={this.props.jsx || <SubItem />} />
|
||||
· ───────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-jsx-as-prop): JSX attribute values should not contain other JSX.
|
||||
╭─[no_jsx_as_prop.tsx:1:1]
|
||||
1 │ <Item jsx={this.props.jsx ? this.props.jsx : <SubItem />} />
|
||||
· ───────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-jsx-as-prop): JSX attribute values should not contain other JSX.
|
||||
╭─[no_jsx_as_prop.tsx:1:1]
|
||||
1 │ <Item jsx={this.props.jsx || (this.props.component ? this.props.component : <SubItem />)} />
|
||||
· ───────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 143
|
||||
expression: no_named_as_default
|
||||
---
|
||||
⚠ eslint-plugin-import(no-named-as-default): Module "./bar" has named export "foo". Using default import as "foo" can be confusing
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_new_array_as_prop
|
||||
---
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={[]} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={new Array()} />
|
||||
· ───────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={Array()} />
|
||||
· ───────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={this.props.list || []} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={this.props.list ? this.props.list : []} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-array-as-prop): JSX attribute values should not contain Arrays created in the same scope.
|
||||
╭─[no_new_array_as_prop.tsx:1:1]
|
||||
1 │ <Item list={this.props.list || (this.props.arr ? this.props.arr : [])} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_new_function_as_props
|
||||
---
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={function(){return true}} />
|
||||
· ───────────────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={() => true} />
|
||||
· ──────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={new Function('a', 'alert(a)')}/>
|
||||
· ─────────────────────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={Function()}/>
|
||||
· ──────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item onClick={this.clickHandler.bind(this)} />
|
||||
· ────────────────────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item callback={this.props.callback || function() {}} />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item callback={this.props.callback ? this.props.callback : function() {}} />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={this.props.callback || this.props.callback ? this.props.callback : function(){}} />
|
||||
· ────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-function-as-props): JSX attribute values should not contain functions created in the same scope.
|
||||
╭─[no_new_function_as_props.tsx:1:1]
|
||||
1 │ <Item prop={this.props.callback || (this.props.cb ? this.props.cb : function(){})} />
|
||||
· ────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_new_object_as_prop
|
||||
---
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={{}} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={new Object()} />
|
||||
· ────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={Object()} />
|
||||
· ────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <div style={{display: 'none'}} />
|
||||
· ─────────────────
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={this.props.config || {}} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={this.props.config ? this.props.config : {}} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
⚠ eslint-plugin-react-perf(no-new-object-as-prop): JSX attribute values should not contain objects created in the same scope.
|
||||
╭─[no_new_object_as_prop.tsx:1:1]
|
||||
1 │ <Item config={this.props.config || (this.props.default ? this.props.default : {})} />
|
||||
· ──
|
||||
╰────
|
||||
help: simplify props or memoize props in the parent component (https://react.dev/reference/react/memo#my-component-rerenders-when-a-prop-is-an-object-or-array).
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 143
|
||||
expression: no_restricted_jest_methods
|
||||
---
|
||||
⚠ eslint-plugin-jest(no-restricted-jest-methods): Disallow specific `jest.` methods
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 143
|
||||
expression: no_restricted_matchers
|
||||
---
|
||||
⚠ eslint-plugin-jest(no-restricted-matchers): Disallow specific matchers & modifiers
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 67
|
||||
expression: no_return_await
|
||||
---
|
||||
⚠ eslint(no-return-await): Redundant use of `await` on a return value.
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: no_self_import
|
||||
---
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[no-self-import.js:1:1]
|
||||
1 │ import bar from './no-self-import'
|
||||
· ──────────────────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[no-self-import.js:1:1]
|
||||
1 │ var bar = require('./no-self-import')
|
||||
· ──────────────────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[no-self-import.js:1:1]
|
||||
1 │ var bar = require('./no-self-import.js')
|
||||
· ─────────────────────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[index.js:1:1]
|
||||
1 │ var bar = require('.')
|
||||
· ───
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[index.js:1:1]
|
||||
1 │ var bar = require('./')
|
||||
· ────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[index.js:1:1]
|
||||
1 │ var bar = require('././././')
|
||||
· ──────────
|
||||
╰────
|
||||
|
||||
⚠ eslint-plugin-import(no-self-import): module importing itself is not allowed
|
||||
╭─[no-self-import-folder/index.js:1:1]
|
||||
1 │ var bar = require('../no-self-import-folder')
|
||||
· ──────────────────────────
|
||||
╰────
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_test_return_statement
|
||||
---
|
||||
⚠ eslint-plugin-jest(no-test-return-statement): Jest tests should not return a value
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_unknown_property
|
||||
---
|
||||
⚠ eslint-plugin-react(no-unknown-property): Unknown property found
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 144
|
||||
expression: no_var
|
||||
---
|
||||
⚠ eslint(no-var): Unexpected var, use let or const instead.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 150
|
||||
expression: no_void
|
||||
---
|
||||
⚠ eslint(no-void): Disallow `void` operators
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 119
|
||||
expression: number_literal_case
|
||||
---
|
||||
⚠ eslint-plugin-unicorn(number-literal-case): Unexpected number literal prefix in uppercase.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 150
|
||||
expression: prefer_called_with
|
||||
---
|
||||
⚠ eslint-plugin-jest(prefer-called-with): Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 105
|
||||
expression: prefer_todo
|
||||
---
|
||||
⚠ eslint-plugin-jest(prefer-todo): Suggest using `test.todo`.
|
||||
|
|
|
|||
|
|
@ -1,257 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: role_support_aria_props
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role link. This role is implicit on the element a.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <a href="/" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role link. This role is implicit on the element area.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <area href="/" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role link. This role is implicit on the element link.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <link href="/" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role img. This role is implicit on the element img.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <img alt="foobar" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role toolbar. This role is implicit on the element menu.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menu type="toolbar" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role complementary. This role is implicit on the element aside.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <aside aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role list. This role is implicit on the element ul.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <ul aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role group. This role is implicit on the element details.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <details aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role dialog. This role is implicit on the element dialog.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <dialog aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role complementary. This role is implicit on the element aside.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <aside aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role article. This role is implicit on the element article.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <article aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role document. This role is implicit on the element body.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <body aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role listitem. This role is implicit on the element li.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <li aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role navigation. This role is implicit on the element nav.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <nav aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role list. This role is implicit on the element ol.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <ol aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role status. This role is implicit on the element output.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <output aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role region. This role is implicit on the element section.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <section aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role rowgroup. This role is implicit on the element tbody.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <tbody aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role rowgroup. This role is implicit on the element tfoot.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <tfoot aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role rowgroup. This role is implicit on the element thead.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <thead aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role radio. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="radio" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-selected is not supported by the role radio. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="radio" aria-selected />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-selected.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-haspopup is not supported by the role radio. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="radio" aria-haspopup />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-haspopup.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-haspopup is not supported by the role checkbox. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="checkbox" aria-haspopup />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-haspopup.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role button. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="reset" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role button. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="image" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role button. This role is implicit on the element input.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <input type="button" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role menuitem. This role is implicit on the element menuitem.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menuitem type="command" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-selected is not supported by the role menuitemradio. This role is implicit on the element menuitem.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menuitem type="radio" aria-selected />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-selected.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-haspopup is not supported by the role toolbar. This role is implicit on the element menu.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menu type="toolbar" aria-haspopup />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-haspopup.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role toolbar. This role is implicit on the element menu.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menu type="toolbar" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-expanded is not supported by the role toolbar. This role is implicit on the element menu.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <menu type="toolbar" aria-expanded />
|
||||
· ─────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-expanded.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role link. This role is implicit on the element link.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <link href="/" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role link. This role is implicit on the element area.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <area href="/" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-invalid is not supported by the role link. This role is implicit on the element a.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <a href="/" aria-invalid />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-invalid.
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(role-support-aria-props): The attribute aria-checked is not supported by the role link. This role is implicit on the element a.
|
||||
╭─[role_support_aria_props.tsx:1:1]
|
||||
1 │ <Link href="/" aria-checked />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Try to remove invalid attribute aria-checked.
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 143
|
||||
expression: scope
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(scope): The scope prop can only be used on <th> elements
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
expression: tab_index_no_positive
|
||||
---
|
||||
⚠ eslint-plugin-jsx-a11y(tab-index-no-positive): Avoid positive integer values for tabIndex.
|
||||
╭─[tab_index_no_positive.tsx:1:1]
|
||||
1 │ <div tabIndex="1" />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Change the tabIndex prop to a non-negative value
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(tab-index-no-positive): Avoid positive integer values for tabIndex.
|
||||
╭─[tab_index_no_positive.tsx:1:1]
|
||||
1 │ <div tabIndex={1} />
|
||||
· ────────────
|
||||
╰────
|
||||
help: Change the tabIndex prop to a non-negative value
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(tab-index-no-positive): Avoid positive integer values for tabIndex.
|
||||
╭─[tab_index_no_positive.tsx:1:1]
|
||||
1 │ <div tabIndex={"1"} />
|
||||
· ──────────────
|
||||
╰────
|
||||
help: Change the tabIndex prop to a non-negative value
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(tab-index-no-positive): Avoid positive integer values for tabIndex.
|
||||
╭─[tab_index_no_positive.tsx:1:1]
|
||||
1 │ <div tabIndex={`1`} />
|
||||
· ──────────────
|
||||
╰────
|
||||
help: Change the tabIndex prop to a non-negative value
|
||||
|
||||
⚠ eslint-plugin-jsx-a11y(tab-index-no-positive): Avoid positive integer values for tabIndex.
|
||||
╭─[tab_index_no_positive.tsx:1:1]
|
||||
1 │ <div tabIndex={1.589} />
|
||||
· ────────────────
|
||||
╰────
|
||||
help: Change the tabIndex prop to a non-negative value
|
||||
|
||||
|
||||
Loading…
Reference in a new issue