Skip to content

Commit 82d22aa

Browse files
authored
fix: rule names conflicting with eslint-plugin-react, closes #1315 (#1316)
1 parent 9e971aa commit 82d22aa

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

packages/plugins/eslint-plugin/src/configs/disable-conflict-eslint-plugin-react.ts

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@ import type { RuleConfig } from "@eslint-react/shared";
44
// Rules provided by `eslint-plugin-react` that exist in this plugin.
55
// Rules provided by `@stylistic` are also omitted from this list.
66
const conflictingRules = [
7-
"button-has-type",
8-
"destructuring-assignment",
9-
"display-name",
10-
"forbid-prop-types",
11-
"forward-ref-uses-ref",
12-
"hook-use-state",
13-
"iframe-missing-sandbox",
14-
"jsx-boolean-value",
15-
"jsx-filename-extension",
16-
"jsx-fragments",
17-
"jsx-key",
18-
"jsx-no-comment-textnodes",
19-
"jsx-no-constructed-context-values",
20-
"jsx-no-duplicate-props",
21-
"jsx-no-leaked-render",
22-
"jsx-no-script-url",
23-
"jsx-no-target-blank",
24-
"jsx-no-undef",
25-
"jsx-no-useless-fragment",
26-
"jsx-pascal-case",
27-
"jsx-uses-react",
28-
"jsx-uses-vars",
29-
"no-access-state-in-setstate",
30-
"no-array-index-key",
31-
"no-children-prop",
32-
"no-danger",
33-
"no-danger-with-children",
34-
"no-deprecated",
35-
"no-did-mount-set-state",
36-
"no-did-update-set-state",
37-
"no-direct-mutation-state",
38-
"no-find-dom-node",
39-
"no-namespace",
40-
"no-object-type-as-default-prop",
41-
"no-redundant-should-component-update",
42-
"no-render-return-value",
43-
"no-string-refs",
44-
"no-unknown-property",
45-
"no-unsafe",
46-
"no-unstable-nested-components",
47-
"no-unused-class-component-members",
48-
"no-unused-state",
49-
"no-will-update-set-state",
50-
"prefer-read-only-props",
51-
"prop-types",
52-
"void-dom-elements-no-children",
7+
"react/button-has-type",
8+
"react/destructuring-assignment",
9+
"react/display-name",
10+
"react/forbid-prop-types",
11+
"react/forward-ref-uses-ref",
12+
"react/hook-use-state",
13+
"react/iframe-missing-sandbox",
14+
"react/jsx-boolean-value",
15+
"react/jsx-filename-extension",
16+
"react/jsx-fragments",
17+
"react/jsx-key",
18+
"react/jsx-no-comment-textnodes",
19+
"react/jsx-no-constructed-context-values",
20+
"react/jsx-no-duplicate-props",
21+
"react/jsx-no-leaked-render",
22+
"react/jsx-no-script-url",
23+
"react/jsx-no-target-blank",
24+
"react/jsx-no-undef",
25+
"react/jsx-no-useless-fragment",
26+
"react/jsx-pascal-case",
27+
"react/jsx-uses-react",
28+
"react/jsx-uses-vars",
29+
"react/no-access-state-in-setstate",
30+
"react/no-array-index-key",
31+
"react/no-children-prop",
32+
"react/no-danger",
33+
"react/no-danger-with-children",
34+
"react/no-deprecated",
35+
"react/no-did-mount-set-state",
36+
"react/no-did-update-set-state",
37+
"react/no-direct-mutation-state",
38+
"react/no-find-dom-node",
39+
"react/no-namespace",
40+
"react/no-object-type-as-default-prop",
41+
"react/no-redundant-should-component-update",
42+
"react/no-render-return-value",
43+
"react/no-string-refs",
44+
"react/no-unknown-property",
45+
"react/no-unsafe",
46+
"react/no-unstable-nested-components",
47+
"react/no-unused-class-component-members",
48+
"react/no-unused-state",
49+
"react/no-will-update-set-state",
50+
"react/prefer-read-only-props",
51+
"react/prop-types",
52+
"react/void-dom-elements-no-children",
5353
];
5454

5555
export const name = "@eslint-react/disable-conflict-eslint-plugin-react";

0 commit comments

Comments
 (0)