@eslint-react/eslint-plugin 1.8.3-next.6 → 1.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/dist/index.d.mts +212 -48
- package/dist/index.d.ts +212 -48
- package/dist/index.js +12 -5
- package/dist/index.mjs +12 -5
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -113,10 +113,14 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
113
113
|
|
|
114
114
|
### Flat Config
|
|
115
115
|
|
|
116
|
+
- **core**\
|
|
117
|
+
Enable rules that are renderer-agnostic.
|
|
116
118
|
- **recommended**\
|
|
117
|
-
Enable rules that are recommended by ESLint React
|
|
119
|
+
Enable rules that are recommended by ESLint React.\
|
|
120
|
+
_This preset includes the `core` preset._
|
|
118
121
|
- **recommended-type-checked**\
|
|
119
|
-
Enable rules that are recommended by ESLint React with additional rules that require type information
|
|
122
|
+
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
123
|
+
_This preset includes the `recommended` preset._
|
|
120
124
|
- **dom**\
|
|
121
125
|
Enable rules that are specific to React DOM.
|
|
122
126
|
- **off-dom**\
|
|
@@ -126,10 +130,14 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
126
130
|
|
|
127
131
|
### Legacy Config
|
|
128
132
|
|
|
133
|
+
- **core-legacy**\
|
|
134
|
+
Enable rules that are renderer-agnostic.
|
|
129
135
|
- **recommended-legacy**\
|
|
130
|
-
Enable rules that are recommended by ESLint React
|
|
136
|
+
Enable rules that are recommended by ESLint React.\
|
|
137
|
+
_This preset includes the `core-legacy` preset._
|
|
131
138
|
- **recommended-type-checked-legacy**\
|
|
132
|
-
Enable rules that are recommended by ESLint React with additional rules that require type information
|
|
139
|
+
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
140
|
+
_This preset includes the `recommended-legacy` preset._
|
|
133
141
|
- **dom-legacy**\
|
|
134
142
|
Enable rules that are specific to React DOM.
|
|
135
143
|
- **off-dom-legacy**\
|
package/dist/index.d.mts
CHANGED
|
@@ -127,6 +127,91 @@ declare const _default: {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
readonly core: {
|
|
131
|
+
readonly plugins: {
|
|
132
|
+
readonly "@eslint-react": typeof react;
|
|
133
|
+
readonly "@eslint-react/debug": typeof reactDebug;
|
|
134
|
+
readonly "@eslint-react/dom": typeof reactDom;
|
|
135
|
+
readonly "@eslint-react/hooks-extra": typeof reactHooksExtra;
|
|
136
|
+
readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
|
|
137
|
+
};
|
|
138
|
+
readonly rules: {
|
|
139
|
+
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
140
|
+
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
141
|
+
readonly "@eslint-react/no-array-index-key": "warn";
|
|
142
|
+
readonly "@eslint-react/no-children-count": "warn";
|
|
143
|
+
readonly "@eslint-react/no-children-for-each": "warn";
|
|
144
|
+
readonly "@eslint-react/no-children-map": "warn";
|
|
145
|
+
readonly "@eslint-react/no-children-only": "warn";
|
|
146
|
+
readonly "@eslint-react/no-children-to-array": "warn";
|
|
147
|
+
readonly "@eslint-react/no-clone-element": "warn";
|
|
148
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
149
|
+
readonly "@eslint-react/no-component-will-mount": "error";
|
|
150
|
+
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
151
|
+
readonly "@eslint-react/no-component-will-update": "error";
|
|
152
|
+
readonly "@eslint-react/no-create-ref": "error";
|
|
153
|
+
readonly "@eslint-react/no-default-props": "error";
|
|
154
|
+
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
155
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
156
|
+
readonly "@eslint-react/no-missing-key": "error";
|
|
157
|
+
readonly "@eslint-react/no-nested-components": "warn";
|
|
158
|
+
readonly "@eslint-react/no-prop-types": "error";
|
|
159
|
+
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
160
|
+
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
161
|
+
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
162
|
+
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
163
|
+
readonly "@eslint-react/no-string-refs": "error";
|
|
164
|
+
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
165
|
+
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
166
|
+
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
167
|
+
readonly "@eslint-react/no-unstable-context-value": "error";
|
|
168
|
+
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
169
|
+
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
170
|
+
readonly "@eslint-react/no-unused-state": "warn";
|
|
171
|
+
};
|
|
172
|
+
readonly settings: {
|
|
173
|
+
readonly "react-x": {
|
|
174
|
+
skipImportCheck: boolean;
|
|
175
|
+
importSource?: string | undefined;
|
|
176
|
+
jsxPragma?: string | undefined;
|
|
177
|
+
jsxPragmaFrag?: string | undefined;
|
|
178
|
+
polymorphicPropName?: string | undefined;
|
|
179
|
+
strict?: boolean | undefined;
|
|
180
|
+
version?: string | undefined;
|
|
181
|
+
additionalComponents?: {
|
|
182
|
+
name: string;
|
|
183
|
+
attributes: {
|
|
184
|
+
name: string;
|
|
185
|
+
as?: string | undefined;
|
|
186
|
+
controlled?: boolean | undefined;
|
|
187
|
+
defaultValue?: string | undefined;
|
|
188
|
+
}[];
|
|
189
|
+
selector?: string | undefined;
|
|
190
|
+
as?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
additionalHooks?: {
|
|
193
|
+
use?: string[] | undefined;
|
|
194
|
+
useActionState?: string[] | undefined;
|
|
195
|
+
useCallback?: string[] | undefined;
|
|
196
|
+
useContext?: string[] | undefined;
|
|
197
|
+
useDebugValue?: string[] | undefined;
|
|
198
|
+
useDeferredValue?: string[] | undefined;
|
|
199
|
+
useEffect?: string[] | undefined;
|
|
200
|
+
useId?: string[] | undefined;
|
|
201
|
+
useImperativeHandle?: string[] | undefined;
|
|
202
|
+
useInsertionEffect?: string[] | undefined;
|
|
203
|
+
useLayoutEffect?: string[] | undefined;
|
|
204
|
+
useMemo?: string[] | undefined;
|
|
205
|
+
useOptimistic?: string[] | undefined;
|
|
206
|
+
useReducer?: string[] | undefined;
|
|
207
|
+
useRef?: string[] | undefined;
|
|
208
|
+
useState?: string[] | undefined;
|
|
209
|
+
useSyncExternalStore?: string[] | undefined;
|
|
210
|
+
useTransition?: string[] | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
130
215
|
readonly debug: {
|
|
131
216
|
readonly plugins: {
|
|
132
217
|
readonly "@eslint-react": typeof react;
|
|
@@ -434,6 +519,18 @@ declare const _default: {
|
|
|
434
519
|
readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
|
|
435
520
|
};
|
|
436
521
|
readonly rules: {
|
|
522
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
523
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
524
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
525
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
526
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
527
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
528
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
529
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
530
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
531
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
532
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
533
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
437
534
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
438
535
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
439
536
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -466,18 +563,6 @@ declare const _default: {
|
|
|
466
563
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
467
564
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
468
565
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
469
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
470
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
471
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
472
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
473
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
474
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
475
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
476
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
477
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
478
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
479
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
480
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
481
566
|
};
|
|
482
567
|
readonly settings: {
|
|
483
568
|
readonly "react-x": {
|
|
@@ -532,6 +617,18 @@ declare const _default: {
|
|
|
532
617
|
};
|
|
533
618
|
readonly rules: {
|
|
534
619
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
620
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
621
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
622
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
623
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
624
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
625
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
626
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
627
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
628
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
629
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
630
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
631
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
535
632
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
536
633
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
537
634
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -564,18 +661,6 @@ declare const _default: {
|
|
|
564
661
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
565
662
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
566
663
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
567
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
568
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
569
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
570
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
571
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
572
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
573
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
574
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
575
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
576
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
577
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
578
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
579
664
|
};
|
|
580
665
|
readonly settings: {
|
|
581
666
|
readonly "react-x": {
|
|
@@ -730,6 +815,85 @@ declare const _default: {
|
|
|
730
815
|
};
|
|
731
816
|
};
|
|
732
817
|
};
|
|
818
|
+
readonly "core-legacy": {
|
|
819
|
+
readonly plugins: readonly ["@eslint-react"];
|
|
820
|
+
readonly rules: {
|
|
821
|
+
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
822
|
+
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
823
|
+
readonly "@eslint-react/no-array-index-key": "warn";
|
|
824
|
+
readonly "@eslint-react/no-children-count": "warn";
|
|
825
|
+
readonly "@eslint-react/no-children-for-each": "warn";
|
|
826
|
+
readonly "@eslint-react/no-children-map": "warn";
|
|
827
|
+
readonly "@eslint-react/no-children-only": "warn";
|
|
828
|
+
readonly "@eslint-react/no-children-to-array": "warn";
|
|
829
|
+
readonly "@eslint-react/no-clone-element": "warn";
|
|
830
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
831
|
+
readonly "@eslint-react/no-component-will-mount": "error";
|
|
832
|
+
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
833
|
+
readonly "@eslint-react/no-component-will-update": "error";
|
|
834
|
+
readonly "@eslint-react/no-create-ref": "error";
|
|
835
|
+
readonly "@eslint-react/no-default-props": "error";
|
|
836
|
+
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
837
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
838
|
+
readonly "@eslint-react/no-missing-key": "error";
|
|
839
|
+
readonly "@eslint-react/no-nested-components": "warn";
|
|
840
|
+
readonly "@eslint-react/no-prop-types": "error";
|
|
841
|
+
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
842
|
+
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
843
|
+
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
844
|
+
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
845
|
+
readonly "@eslint-react/no-string-refs": "error";
|
|
846
|
+
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
847
|
+
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
848
|
+
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
849
|
+
readonly "@eslint-react/no-unstable-context-value": "error";
|
|
850
|
+
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
851
|
+
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
852
|
+
readonly "@eslint-react/no-unused-state": "warn";
|
|
853
|
+
};
|
|
854
|
+
readonly settings: {
|
|
855
|
+
readonly "react-x": {
|
|
856
|
+
skipImportCheck: boolean;
|
|
857
|
+
importSource?: string | undefined;
|
|
858
|
+
jsxPragma?: string | undefined;
|
|
859
|
+
jsxPragmaFrag?: string | undefined;
|
|
860
|
+
polymorphicPropName?: string | undefined;
|
|
861
|
+
strict?: boolean | undefined;
|
|
862
|
+
version?: string | undefined;
|
|
863
|
+
additionalComponents?: {
|
|
864
|
+
name: string;
|
|
865
|
+
attributes: {
|
|
866
|
+
name: string;
|
|
867
|
+
as?: string | undefined;
|
|
868
|
+
controlled?: boolean | undefined;
|
|
869
|
+
defaultValue?: string | undefined;
|
|
870
|
+
}[];
|
|
871
|
+
selector?: string | undefined;
|
|
872
|
+
as?: string | undefined;
|
|
873
|
+
}[] | undefined;
|
|
874
|
+
additionalHooks?: {
|
|
875
|
+
use?: string[] | undefined;
|
|
876
|
+
useActionState?: string[] | undefined;
|
|
877
|
+
useCallback?: string[] | undefined;
|
|
878
|
+
useContext?: string[] | undefined;
|
|
879
|
+
useDebugValue?: string[] | undefined;
|
|
880
|
+
useDeferredValue?: string[] | undefined;
|
|
881
|
+
useEffect?: string[] | undefined;
|
|
882
|
+
useId?: string[] | undefined;
|
|
883
|
+
useImperativeHandle?: string[] | undefined;
|
|
884
|
+
useInsertionEffect?: string[] | undefined;
|
|
885
|
+
useLayoutEffect?: string[] | undefined;
|
|
886
|
+
useMemo?: string[] | undefined;
|
|
887
|
+
useOptimistic?: string[] | undefined;
|
|
888
|
+
useReducer?: string[] | undefined;
|
|
889
|
+
useRef?: string[] | undefined;
|
|
890
|
+
useState?: string[] | undefined;
|
|
891
|
+
useSyncExternalStore?: string[] | undefined;
|
|
892
|
+
useTransition?: string[] | undefined;
|
|
893
|
+
} | undefined;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
};
|
|
733
897
|
readonly "debug-legacy": {
|
|
734
898
|
readonly plugins: readonly ["@eslint-react"];
|
|
735
899
|
readonly rules: {
|
|
@@ -1007,6 +1171,18 @@ declare const _default: {
|
|
|
1007
1171
|
readonly "recommended-legacy": {
|
|
1008
1172
|
readonly plugins: readonly ["@eslint-react"];
|
|
1009
1173
|
readonly rules: {
|
|
1174
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1175
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1176
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1177
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1178
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1179
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1180
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1181
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1182
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1183
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1184
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1185
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1010
1186
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1011
1187
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1012
1188
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -1039,18 +1215,6 @@ declare const _default: {
|
|
|
1039
1215
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
1040
1216
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
1041
1217
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
1042
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1043
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1044
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1045
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1046
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1047
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1048
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1049
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1050
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1051
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1052
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1053
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1054
1218
|
};
|
|
1055
1219
|
readonly settings: {
|
|
1056
1220
|
readonly "react-x": {
|
|
@@ -1099,6 +1263,18 @@ declare const _default: {
|
|
|
1099
1263
|
readonly plugins: readonly ["@eslint-react"];
|
|
1100
1264
|
readonly rules: {
|
|
1101
1265
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
1266
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1267
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1268
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1269
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1270
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1271
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1272
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1273
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1274
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1275
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1276
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1277
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1102
1278
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1103
1279
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1104
1280
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -1131,18 +1307,6 @@ declare const _default: {
|
|
|
1131
1307
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
1132
1308
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
1133
1309
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
1134
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1135
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1136
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1137
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1138
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1139
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1140
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1141
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1142
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1143
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1144
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1145
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1146
1310
|
};
|
|
1147
1311
|
readonly settings: {
|
|
1148
1312
|
readonly "react-x": {
|
package/dist/index.d.ts
CHANGED
|
@@ -127,6 +127,91 @@ declare const _default: {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
readonly core: {
|
|
131
|
+
readonly plugins: {
|
|
132
|
+
readonly "@eslint-react": typeof react;
|
|
133
|
+
readonly "@eslint-react/debug": typeof reactDebug;
|
|
134
|
+
readonly "@eslint-react/dom": typeof reactDom;
|
|
135
|
+
readonly "@eslint-react/hooks-extra": typeof reactHooksExtra;
|
|
136
|
+
readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
|
|
137
|
+
};
|
|
138
|
+
readonly rules: {
|
|
139
|
+
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
140
|
+
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
141
|
+
readonly "@eslint-react/no-array-index-key": "warn";
|
|
142
|
+
readonly "@eslint-react/no-children-count": "warn";
|
|
143
|
+
readonly "@eslint-react/no-children-for-each": "warn";
|
|
144
|
+
readonly "@eslint-react/no-children-map": "warn";
|
|
145
|
+
readonly "@eslint-react/no-children-only": "warn";
|
|
146
|
+
readonly "@eslint-react/no-children-to-array": "warn";
|
|
147
|
+
readonly "@eslint-react/no-clone-element": "warn";
|
|
148
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
149
|
+
readonly "@eslint-react/no-component-will-mount": "error";
|
|
150
|
+
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
151
|
+
readonly "@eslint-react/no-component-will-update": "error";
|
|
152
|
+
readonly "@eslint-react/no-create-ref": "error";
|
|
153
|
+
readonly "@eslint-react/no-default-props": "error";
|
|
154
|
+
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
155
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
156
|
+
readonly "@eslint-react/no-missing-key": "error";
|
|
157
|
+
readonly "@eslint-react/no-nested-components": "warn";
|
|
158
|
+
readonly "@eslint-react/no-prop-types": "error";
|
|
159
|
+
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
160
|
+
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
161
|
+
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
162
|
+
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
163
|
+
readonly "@eslint-react/no-string-refs": "error";
|
|
164
|
+
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
165
|
+
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
166
|
+
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
167
|
+
readonly "@eslint-react/no-unstable-context-value": "error";
|
|
168
|
+
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
169
|
+
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
170
|
+
readonly "@eslint-react/no-unused-state": "warn";
|
|
171
|
+
};
|
|
172
|
+
readonly settings: {
|
|
173
|
+
readonly "react-x": {
|
|
174
|
+
skipImportCheck: boolean;
|
|
175
|
+
importSource?: string | undefined;
|
|
176
|
+
jsxPragma?: string | undefined;
|
|
177
|
+
jsxPragmaFrag?: string | undefined;
|
|
178
|
+
polymorphicPropName?: string | undefined;
|
|
179
|
+
strict?: boolean | undefined;
|
|
180
|
+
version?: string | undefined;
|
|
181
|
+
additionalComponents?: {
|
|
182
|
+
name: string;
|
|
183
|
+
attributes: {
|
|
184
|
+
name: string;
|
|
185
|
+
as?: string | undefined;
|
|
186
|
+
controlled?: boolean | undefined;
|
|
187
|
+
defaultValue?: string | undefined;
|
|
188
|
+
}[];
|
|
189
|
+
selector?: string | undefined;
|
|
190
|
+
as?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
additionalHooks?: {
|
|
193
|
+
use?: string[] | undefined;
|
|
194
|
+
useActionState?: string[] | undefined;
|
|
195
|
+
useCallback?: string[] | undefined;
|
|
196
|
+
useContext?: string[] | undefined;
|
|
197
|
+
useDebugValue?: string[] | undefined;
|
|
198
|
+
useDeferredValue?: string[] | undefined;
|
|
199
|
+
useEffect?: string[] | undefined;
|
|
200
|
+
useId?: string[] | undefined;
|
|
201
|
+
useImperativeHandle?: string[] | undefined;
|
|
202
|
+
useInsertionEffect?: string[] | undefined;
|
|
203
|
+
useLayoutEffect?: string[] | undefined;
|
|
204
|
+
useMemo?: string[] | undefined;
|
|
205
|
+
useOptimistic?: string[] | undefined;
|
|
206
|
+
useReducer?: string[] | undefined;
|
|
207
|
+
useRef?: string[] | undefined;
|
|
208
|
+
useState?: string[] | undefined;
|
|
209
|
+
useSyncExternalStore?: string[] | undefined;
|
|
210
|
+
useTransition?: string[] | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
130
215
|
readonly debug: {
|
|
131
216
|
readonly plugins: {
|
|
132
217
|
readonly "@eslint-react": typeof react;
|
|
@@ -434,6 +519,18 @@ declare const _default: {
|
|
|
434
519
|
readonly "@eslint-react/naming-convention": typeof reactNamingConvention;
|
|
435
520
|
};
|
|
436
521
|
readonly rules: {
|
|
522
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
523
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
524
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
525
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
526
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
527
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
528
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
529
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
530
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
531
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
532
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
533
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
437
534
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
438
535
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
439
536
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -466,18 +563,6 @@ declare const _default: {
|
|
|
466
563
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
467
564
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
468
565
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
469
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
470
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
471
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
472
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
473
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
474
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
475
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
476
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
477
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
478
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
479
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
480
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
481
566
|
};
|
|
482
567
|
readonly settings: {
|
|
483
568
|
readonly "react-x": {
|
|
@@ -532,6 +617,18 @@ declare const _default: {
|
|
|
532
617
|
};
|
|
533
618
|
readonly rules: {
|
|
534
619
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
620
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
621
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
622
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
623
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
624
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
625
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
626
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
627
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
628
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
629
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
630
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
631
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
535
632
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
536
633
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
537
634
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -564,18 +661,6 @@ declare const _default: {
|
|
|
564
661
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
565
662
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
566
663
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
567
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
568
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
569
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
570
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
571
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
572
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
573
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
574
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
575
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
576
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
577
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
578
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
579
664
|
};
|
|
580
665
|
readonly settings: {
|
|
581
666
|
readonly "react-x": {
|
|
@@ -730,6 +815,85 @@ declare const _default: {
|
|
|
730
815
|
};
|
|
731
816
|
};
|
|
732
817
|
};
|
|
818
|
+
readonly "core-legacy": {
|
|
819
|
+
readonly plugins: readonly ["@eslint-react"];
|
|
820
|
+
readonly rules: {
|
|
821
|
+
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
822
|
+
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
823
|
+
readonly "@eslint-react/no-array-index-key": "warn";
|
|
824
|
+
readonly "@eslint-react/no-children-count": "warn";
|
|
825
|
+
readonly "@eslint-react/no-children-for-each": "warn";
|
|
826
|
+
readonly "@eslint-react/no-children-map": "warn";
|
|
827
|
+
readonly "@eslint-react/no-children-only": "warn";
|
|
828
|
+
readonly "@eslint-react/no-children-to-array": "warn";
|
|
829
|
+
readonly "@eslint-react/no-clone-element": "warn";
|
|
830
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
831
|
+
readonly "@eslint-react/no-component-will-mount": "error";
|
|
832
|
+
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
833
|
+
readonly "@eslint-react/no-component-will-update": "error";
|
|
834
|
+
readonly "@eslint-react/no-create-ref": "error";
|
|
835
|
+
readonly "@eslint-react/no-default-props": "error";
|
|
836
|
+
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
837
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
838
|
+
readonly "@eslint-react/no-missing-key": "error";
|
|
839
|
+
readonly "@eslint-react/no-nested-components": "warn";
|
|
840
|
+
readonly "@eslint-react/no-prop-types": "error";
|
|
841
|
+
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
842
|
+
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
843
|
+
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
844
|
+
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
845
|
+
readonly "@eslint-react/no-string-refs": "error";
|
|
846
|
+
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
847
|
+
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
848
|
+
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
849
|
+
readonly "@eslint-react/no-unstable-context-value": "error";
|
|
850
|
+
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
851
|
+
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
852
|
+
readonly "@eslint-react/no-unused-state": "warn";
|
|
853
|
+
};
|
|
854
|
+
readonly settings: {
|
|
855
|
+
readonly "react-x": {
|
|
856
|
+
skipImportCheck: boolean;
|
|
857
|
+
importSource?: string | undefined;
|
|
858
|
+
jsxPragma?: string | undefined;
|
|
859
|
+
jsxPragmaFrag?: string | undefined;
|
|
860
|
+
polymorphicPropName?: string | undefined;
|
|
861
|
+
strict?: boolean | undefined;
|
|
862
|
+
version?: string | undefined;
|
|
863
|
+
additionalComponents?: {
|
|
864
|
+
name: string;
|
|
865
|
+
attributes: {
|
|
866
|
+
name: string;
|
|
867
|
+
as?: string | undefined;
|
|
868
|
+
controlled?: boolean | undefined;
|
|
869
|
+
defaultValue?: string | undefined;
|
|
870
|
+
}[];
|
|
871
|
+
selector?: string | undefined;
|
|
872
|
+
as?: string | undefined;
|
|
873
|
+
}[] | undefined;
|
|
874
|
+
additionalHooks?: {
|
|
875
|
+
use?: string[] | undefined;
|
|
876
|
+
useActionState?: string[] | undefined;
|
|
877
|
+
useCallback?: string[] | undefined;
|
|
878
|
+
useContext?: string[] | undefined;
|
|
879
|
+
useDebugValue?: string[] | undefined;
|
|
880
|
+
useDeferredValue?: string[] | undefined;
|
|
881
|
+
useEffect?: string[] | undefined;
|
|
882
|
+
useId?: string[] | undefined;
|
|
883
|
+
useImperativeHandle?: string[] | undefined;
|
|
884
|
+
useInsertionEffect?: string[] | undefined;
|
|
885
|
+
useLayoutEffect?: string[] | undefined;
|
|
886
|
+
useMemo?: string[] | undefined;
|
|
887
|
+
useOptimistic?: string[] | undefined;
|
|
888
|
+
useReducer?: string[] | undefined;
|
|
889
|
+
useRef?: string[] | undefined;
|
|
890
|
+
useState?: string[] | undefined;
|
|
891
|
+
useSyncExternalStore?: string[] | undefined;
|
|
892
|
+
useTransition?: string[] | undefined;
|
|
893
|
+
} | undefined;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
};
|
|
733
897
|
readonly "debug-legacy": {
|
|
734
898
|
readonly plugins: readonly ["@eslint-react"];
|
|
735
899
|
readonly rules: {
|
|
@@ -1007,6 +1171,18 @@ declare const _default: {
|
|
|
1007
1171
|
readonly "recommended-legacy": {
|
|
1008
1172
|
readonly plugins: readonly ["@eslint-react"];
|
|
1009
1173
|
readonly rules: {
|
|
1174
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1175
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1176
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1177
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1178
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1179
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1180
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1181
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1182
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1183
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1184
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1185
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1010
1186
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1011
1187
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1012
1188
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -1039,18 +1215,6 @@ declare const _default: {
|
|
|
1039
1215
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
1040
1216
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
1041
1217
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
1042
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1043
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1044
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1045
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1046
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1047
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1048
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1049
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1050
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1051
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1052
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1053
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1054
1218
|
};
|
|
1055
1219
|
readonly settings: {
|
|
1056
1220
|
readonly "react-x": {
|
|
@@ -1099,6 +1263,18 @@ declare const _default: {
|
|
|
1099
1263
|
readonly plugins: readonly ["@eslint-react"];
|
|
1100
1264
|
readonly rules: {
|
|
1101
1265
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
1266
|
+
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1267
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1268
|
+
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1269
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1270
|
+
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1271
|
+
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1272
|
+
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1273
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1274
|
+
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1275
|
+
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1276
|
+
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1277
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1102
1278
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1103
1279
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1104
1280
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -1131,18 +1307,6 @@ declare const _default: {
|
|
|
1131
1307
|
readonly "@eslint-react/no-unstable-default-props": "error";
|
|
1132
1308
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
1133
1309
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
1134
|
-
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
1135
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
1136
|
-
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
1137
|
-
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
1138
|
-
readonly "@eslint-react/dom/no-missing-button-type": "warn";
|
|
1139
|
-
readonly "@eslint-react/dom/no-missing-iframe-sandbox": "warn";
|
|
1140
|
-
readonly "@eslint-react/dom/no-namespace": "error";
|
|
1141
|
-
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
1142
|
-
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
1143
|
-
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1144
|
-
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1145
|
-
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
1146
1310
|
};
|
|
1147
1311
|
readonly settings: {
|
|
1148
1312
|
readonly "react-x": {
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var R__namespace = /*#__PURE__*/_interopNamespace(R);
|
|
|
38
38
|
|
|
39
39
|
// package.json
|
|
40
40
|
var name = "@eslint-react/eslint-plugin";
|
|
41
|
-
var version = "1.
|
|
41
|
+
var version = "1.9.0-beta.0";
|
|
42
42
|
function transformKeys(obj, transform) {
|
|
43
43
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
44
44
|
const res = {};
|
|
@@ -126,8 +126,7 @@ var allPreset = {
|
|
|
126
126
|
"naming-convention/filename-extension": "warn",
|
|
127
127
|
"naming-convention/use-state": "warn"
|
|
128
128
|
};
|
|
129
|
-
var
|
|
130
|
-
// Part: react rules
|
|
129
|
+
var corePreset = {
|
|
131
130
|
// "avoid-shorthand-boolean": "warn",
|
|
132
131
|
// "avoid-shorthand-fragment": "warn",
|
|
133
132
|
"ensure-forward-ref-using-ref": "warn",
|
|
@@ -167,12 +166,15 @@ var recommendedPreset = {
|
|
|
167
166
|
"no-unstable-context-value": "error",
|
|
168
167
|
"no-unstable-default-props": "error",
|
|
169
168
|
"no-unused-class-component-members": "warn",
|
|
170
|
-
"no-unused-state": "warn"
|
|
169
|
+
"no-unused-state": "warn"
|
|
171
170
|
// "no-useless-fragment": "warn",
|
|
172
171
|
// "prefer-read-only-props": "warn",
|
|
173
172
|
// "prefer-destructuring-assignment": "warn",
|
|
174
173
|
// "prefer-shorthand-boolean": "warn",
|
|
175
174
|
// "prefer-shorthand-fragment": "warn",
|
|
175
|
+
};
|
|
176
|
+
var recommendedPreset = {
|
|
177
|
+
...corePreset,
|
|
176
178
|
// Part: react-dom rules
|
|
177
179
|
"dom/no-children-in-void-dom-elements": "warn",
|
|
178
180
|
"dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -209,8 +211,11 @@ var domPreset = {
|
|
|
209
211
|
"dom/no-unsafe-iframe-sandbox": "warn",
|
|
210
212
|
"dom/no-unsafe-target-blank": "warn"
|
|
211
213
|
};
|
|
214
|
+
var corePresetSettings = {
|
|
215
|
+
...shared.DEFAULT_ESLINT_REACT_SETTINGS
|
|
216
|
+
};
|
|
212
217
|
var domPresetSettings = {
|
|
213
|
-
...
|
|
218
|
+
...corePresetSettings,
|
|
214
219
|
additionalComponents: [
|
|
215
220
|
{
|
|
216
221
|
name: "Link",
|
|
@@ -265,6 +270,7 @@ var src_default = {
|
|
|
265
270
|
},
|
|
266
271
|
configs: {
|
|
267
272
|
all: createFlatConfig(allPreset),
|
|
273
|
+
core: createFlatConfig(corePreset, corePresetSettings),
|
|
268
274
|
debug: createFlatConfig(debugPreset),
|
|
269
275
|
dom: createFlatConfig(domPreset, domPresetSettings),
|
|
270
276
|
off: createFlatConfig(offPreset),
|
|
@@ -273,6 +279,7 @@ var src_default = {
|
|
|
273
279
|
"recommended-type-checked": createFlatConfig(recommendedTypeCheckedPreset),
|
|
274
280
|
// eslint-disable-next-line perfectionist/sort-objects
|
|
275
281
|
"all-legacy": createLegacyConfig(allPreset),
|
|
282
|
+
"core-legacy": createLegacyConfig(corePreset, corePresetSettings),
|
|
276
283
|
"debug-legacy": createLegacyConfig(debugPreset),
|
|
277
284
|
"dom-legacy": createLegacyConfig(domPreset),
|
|
278
285
|
"off-dom-legacy": createLegacyConfig(offDomPreset),
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { typeOf } from '@eslint-react/tools';
|
|
|
11
11
|
|
|
12
12
|
// package.json
|
|
13
13
|
var name = "@eslint-react/eslint-plugin";
|
|
14
|
-
var version = "1.
|
|
14
|
+
var version = "1.9.0-beta.0";
|
|
15
15
|
function transformKeys(obj, transform) {
|
|
16
16
|
if (typeOf(obj) !== "object") return obj;
|
|
17
17
|
const res = {};
|
|
@@ -99,8 +99,7 @@ var allPreset = {
|
|
|
99
99
|
"naming-convention/filename-extension": "warn",
|
|
100
100
|
"naming-convention/use-state": "warn"
|
|
101
101
|
};
|
|
102
|
-
var
|
|
103
|
-
// Part: react rules
|
|
102
|
+
var corePreset = {
|
|
104
103
|
// "avoid-shorthand-boolean": "warn",
|
|
105
104
|
// "avoid-shorthand-fragment": "warn",
|
|
106
105
|
"ensure-forward-ref-using-ref": "warn",
|
|
@@ -140,12 +139,15 @@ var recommendedPreset = {
|
|
|
140
139
|
"no-unstable-context-value": "error",
|
|
141
140
|
"no-unstable-default-props": "error",
|
|
142
141
|
"no-unused-class-component-members": "warn",
|
|
143
|
-
"no-unused-state": "warn"
|
|
142
|
+
"no-unused-state": "warn"
|
|
144
143
|
// "no-useless-fragment": "warn",
|
|
145
144
|
// "prefer-read-only-props": "warn",
|
|
146
145
|
// "prefer-destructuring-assignment": "warn",
|
|
147
146
|
// "prefer-shorthand-boolean": "warn",
|
|
148
147
|
// "prefer-shorthand-fragment": "warn",
|
|
148
|
+
};
|
|
149
|
+
var recommendedPreset = {
|
|
150
|
+
...corePreset,
|
|
149
151
|
// Part: react-dom rules
|
|
150
152
|
"dom/no-children-in-void-dom-elements": "warn",
|
|
151
153
|
"dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -182,8 +184,11 @@ var domPreset = {
|
|
|
182
184
|
"dom/no-unsafe-iframe-sandbox": "warn",
|
|
183
185
|
"dom/no-unsafe-target-blank": "warn"
|
|
184
186
|
};
|
|
187
|
+
var corePresetSettings = {
|
|
188
|
+
...DEFAULT_ESLINT_REACT_SETTINGS
|
|
189
|
+
};
|
|
185
190
|
var domPresetSettings = {
|
|
186
|
-
...
|
|
191
|
+
...corePresetSettings,
|
|
187
192
|
additionalComponents: [
|
|
188
193
|
{
|
|
189
194
|
name: "Link",
|
|
@@ -238,6 +243,7 @@ var src_default = {
|
|
|
238
243
|
},
|
|
239
244
|
configs: {
|
|
240
245
|
all: createFlatConfig(allPreset),
|
|
246
|
+
core: createFlatConfig(corePreset, corePresetSettings),
|
|
241
247
|
debug: createFlatConfig(debugPreset),
|
|
242
248
|
dom: createFlatConfig(domPreset, domPresetSettings),
|
|
243
249
|
off: createFlatConfig(offPreset),
|
|
@@ -246,6 +252,7 @@ var src_default = {
|
|
|
246
252
|
"recommended-type-checked": createFlatConfig(recommendedTypeCheckedPreset),
|
|
247
253
|
// eslint-disable-next-line perfectionist/sort-objects
|
|
248
254
|
"all-legacy": createLegacyConfig(allPreset),
|
|
255
|
+
"core-legacy": createLegacyConfig(corePreset, corePresetSettings),
|
|
249
256
|
"debug-legacy": createLegacyConfig(debugPreset),
|
|
250
257
|
"dom-legacy": createLegacyConfig(domPreset),
|
|
251
258
|
"off-dom-legacy": createLegacyConfig(offDomPreset),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-beta.0",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@typescript-eslint/types": "^8.0.0",
|
|
49
49
|
"@typescript-eslint/utils": "^8.0.0",
|
|
50
50
|
"remeda": "^2.7.0",
|
|
51
|
-
"@eslint-react/shared": "1.
|
|
52
|
-
"@eslint-react/types": "1.
|
|
53
|
-
"
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-
|
|
51
|
+
"@eslint-react/shared": "1.9.0-beta.0",
|
|
52
|
+
"@eslint-react/types": "1.9.0-beta.0",
|
|
53
|
+
"eslint-plugin-react-dom": "1.9.0-beta.0",
|
|
54
|
+
"eslint-plugin-react-hooks-extra": "1.9.0-beta.0",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.9.0-beta.0",
|
|
56
|
+
"eslint-plugin-react-x": "1.9.0-beta.0",
|
|
57
|
+
"eslint-plugin-react-debug": "1.9.0-beta.0",
|
|
58
|
+
"@eslint-react/tools": "1.9.0-beta.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "8.2.4"
|