eslint-plugin-react-x 2.0.0-beta.4 → 2.0.0-beta.41
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/dist/index.d.ts +40 -0
- package/dist/index.js +718 -546
- package/package.json +15 -16
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,15 @@ declare const _default: {
|
|
|
42
42
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
43
43
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
44
44
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
45
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
46
|
+
forbid: (string | {
|
|
47
|
+
excludedNodes?: string[];
|
|
48
|
+
prop: string;
|
|
49
|
+
} | {
|
|
50
|
+
includedNodes?: string[];
|
|
51
|
+
prop: string;
|
|
52
|
+
})[];
|
|
53
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
45
54
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
46
55
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
47
56
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -66,6 +75,7 @@ declare const _default: {
|
|
|
66
75
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
67
76
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
68
77
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
78
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
69
79
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
70
80
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
71
81
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -128,6 +138,15 @@ declare const _default: {
|
|
|
128
138
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
129
139
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
130
140
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
141
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
142
|
+
forbid: (string | {
|
|
143
|
+
excludedNodes?: string[];
|
|
144
|
+
prop: string;
|
|
145
|
+
} | {
|
|
146
|
+
includedNodes?: string[];
|
|
147
|
+
prop: string;
|
|
148
|
+
})[];
|
|
149
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
131
150
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
132
151
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
133
152
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -152,6 +171,7 @@ declare const _default: {
|
|
|
152
171
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
153
172
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
154
173
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
174
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
155
175
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
156
176
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
157
177
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -214,6 +234,15 @@ declare const _default: {
|
|
|
214
234
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
215
235
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
216
236
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
237
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
238
|
+
forbid: (string | {
|
|
239
|
+
excludedNodes?: string[];
|
|
240
|
+
prop: string;
|
|
241
|
+
} | {
|
|
242
|
+
includedNodes?: string[];
|
|
243
|
+
prop: string;
|
|
244
|
+
})[];
|
|
245
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
217
246
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
218
247
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
219
248
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -238,6 +267,7 @@ declare const _default: {
|
|
|
238
267
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
239
268
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
240
269
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
270
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
241
271
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
242
272
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
243
273
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -298,6 +328,15 @@ declare const _default: {
|
|
|
298
328
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
299
329
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
300
330
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
331
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
332
|
+
forbid: (string | {
|
|
333
|
+
excludedNodes?: string[];
|
|
334
|
+
prop: string;
|
|
335
|
+
} | {
|
|
336
|
+
includedNodes?: string[];
|
|
337
|
+
prop: string;
|
|
338
|
+
})[];
|
|
339
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
301
340
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
302
341
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
303
342
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -322,6 +361,7 @@ declare const _default: {
|
|
|
322
361
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
323
362
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
324
363
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
364
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
325
365
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
326
366
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
327
367
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|