@@ -4,54 +4,56 @@ import type { RulePreset } from "@eslint-react/kit";
44// Rules provided by `eslint-plugin-react` that exist in this plugin.
55// Rules provided by `@stylistic` are also omitted from this list.
66const 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'
53- ]
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" ,
53+ ] ;
5454
5555export const name = "@eslint-react/disable-conflict-eslint-plugin-react" ;
5656
57- export const rules : RulePreset = Object . fromEntries ( Object . entries ( conflictingRules ) . map ( ( [ key ] ) => [ key , "off" ] as const ) ) ;
57+ export const rules : RulePreset = Object . fromEntries (
58+ Object . entries ( conflictingRules ) . map ( ( [ key ] ) => [ key , "off" ] as const ) ,
59+ ) ;
0 commit comments