@eslint-react/eslint-plugin 2.0.0-next.0 → 2.0.0-next.2
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.js +28 -39
- package/package.json +13 -21
- package/dist/index.d.mts +0 -3186
- package/dist/index.mjs +0 -457
package/dist/index.mjs
DELETED
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import reactDebug from 'eslint-plugin-react-debug';
|
|
2
|
-
import reactDom from 'eslint-plugin-react-dom';
|
|
3
|
-
import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
|
|
4
|
-
import reactNamingConvention from 'eslint-plugin-react-naming-convention';
|
|
5
|
-
import reactWebApi from 'eslint-plugin-react-web-api';
|
|
6
|
-
import react from 'eslint-plugin-react-x';
|
|
7
|
-
import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
8
|
-
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name14 in all)
|
|
12
|
-
__defProp(target, name14, { get: all[name14], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
// package.json
|
|
16
|
-
var name = "@eslint-react/eslint-plugin";
|
|
17
|
-
var version = "2.0.0-next.0";
|
|
18
|
-
|
|
19
|
-
// src/configs/all.ts
|
|
20
|
-
var all_exports = {};
|
|
21
|
-
__export(all_exports, {
|
|
22
|
-
name: () => name4,
|
|
23
|
-
plugins: () => plugins3,
|
|
24
|
-
rules: () => rules3,
|
|
25
|
-
settings: () => settings3
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// src/configs/dom.ts
|
|
29
|
-
var dom_exports = {};
|
|
30
|
-
__export(dom_exports, {
|
|
31
|
-
name: () => name2,
|
|
32
|
-
plugins: () => plugins,
|
|
33
|
-
rules: () => rules,
|
|
34
|
-
settings: () => settings
|
|
35
|
-
});
|
|
36
|
-
var name2 = "@eslint-react/dom";
|
|
37
|
-
var rules = {
|
|
38
|
-
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
39
|
-
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
40
|
-
"@eslint-react/dom/no-find-dom-node": "error",
|
|
41
|
-
"@eslint-react/dom/no-flush-sync": "error",
|
|
42
|
-
"@eslint-react/dom/no-hydrate": "error",
|
|
43
|
-
"@eslint-react/dom/no-missing-button-type": "warn",
|
|
44
|
-
"@eslint-react/dom/no-missing-iframe-sandbox": "warn",
|
|
45
|
-
"@eslint-react/dom/no-namespace": "error",
|
|
46
|
-
"@eslint-react/dom/no-render": "error",
|
|
47
|
-
"@eslint-react/dom/no-render-return-value": "error",
|
|
48
|
-
"@eslint-react/dom/no-script-url": "warn",
|
|
49
|
-
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
|
|
50
|
-
"@eslint-react/dom/no-unsafe-target-blank": "warn",
|
|
51
|
-
"@eslint-react/dom/no-use-form-state": "error",
|
|
52
|
-
"@eslint-react/dom/no-void-elements-with-children": "error"
|
|
53
|
-
};
|
|
54
|
-
var plugins = {
|
|
55
|
-
"@eslint-react/dom": reactDom
|
|
56
|
-
};
|
|
57
|
-
var settings = {
|
|
58
|
-
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// src/configs/x.ts
|
|
62
|
-
var x_exports = {};
|
|
63
|
-
__export(x_exports, {
|
|
64
|
-
name: () => name3,
|
|
65
|
-
plugins: () => plugins2,
|
|
66
|
-
rules: () => rules2,
|
|
67
|
-
settings: () => settings2
|
|
68
|
-
});
|
|
69
|
-
var name3 = "@eslint-react/x";
|
|
70
|
-
var rules2 = {
|
|
71
|
-
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
72
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
73
|
-
// "@eslint-react/jsx-no-undef": "error",
|
|
74
|
-
// "@eslint-react/jsx-shorthand-boolean": "warn",
|
|
75
|
-
// "@eslint-react/jsx-shorthand-fragment": "warn",
|
|
76
|
-
"@eslint-react/jsx-uses-react": "warn",
|
|
77
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
78
|
-
"@eslint-react/no-access-state-in-setstate": "error",
|
|
79
|
-
"@eslint-react/no-array-index-key": "warn",
|
|
80
|
-
"@eslint-react/no-children-count": "warn",
|
|
81
|
-
"@eslint-react/no-children-for-each": "warn",
|
|
82
|
-
"@eslint-react/no-children-map": "warn",
|
|
83
|
-
"@eslint-react/no-children-only": "warn",
|
|
84
|
-
// "@eslint-react/no-children-prop": "warn",
|
|
85
|
-
"@eslint-react/no-children-to-array": "warn",
|
|
86
|
-
// "@eslint-react/no-class-component": "warn",
|
|
87
|
-
"@eslint-react/no-clone-element": "warn",
|
|
88
|
-
"@eslint-react/no-component-will-mount": "error",
|
|
89
|
-
"@eslint-react/no-component-will-receive-props": "error",
|
|
90
|
-
"@eslint-react/no-component-will-update": "error",
|
|
91
|
-
"@eslint-react/no-context-provider": "warn",
|
|
92
|
-
"@eslint-react/no-create-ref": "error",
|
|
93
|
-
"@eslint-react/no-default-props": "error",
|
|
94
|
-
"@eslint-react/no-direct-mutation-state": "error",
|
|
95
|
-
"@eslint-react/no-duplicate-key": "warn",
|
|
96
|
-
"@eslint-react/no-forward-ref": "warn",
|
|
97
|
-
"@eslint-react/no-implicit-key": "warn",
|
|
98
|
-
// "@eslint-react/no-missing-component-display-name": "warn",
|
|
99
|
-
// "@eslint-react/no-missing-context-display-name": "warn",
|
|
100
|
-
"@eslint-react/no-missing-key": "error",
|
|
101
|
-
// "@eslint-react/no-misused-capture-owner-stack": "error",
|
|
102
|
-
"@eslint-react/no-nested-component-definitions": "error",
|
|
103
|
-
"@eslint-react/no-nested-lazy-component-declarations": "warn",
|
|
104
|
-
"@eslint-react/no-prop-types": "error",
|
|
105
|
-
"@eslint-react/no-redundant-should-component-update": "error",
|
|
106
|
-
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
107
|
-
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
108
|
-
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
109
|
-
"@eslint-react/no-string-refs": "error",
|
|
110
|
-
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
111
|
-
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
112
|
-
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
113
|
-
"@eslint-react/no-unstable-context-value": "warn",
|
|
114
|
-
"@eslint-react/no-unstable-default-props": "warn",
|
|
115
|
-
"@eslint-react/no-unused-class-component-members": "warn",
|
|
116
|
-
"@eslint-react/no-unused-state": "warn",
|
|
117
|
-
"@eslint-react/no-use-context": "warn",
|
|
118
|
-
"@eslint-react/no-useless-forward-ref": "warn"
|
|
119
|
-
// "@eslint-react/no-useless-fragment": "warn",
|
|
120
|
-
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
121
|
-
// "@eslint-react/prefer-namespace-import": "warn",
|
|
122
|
-
// "@eslint-react/prefer-read-only-props": "error",
|
|
123
|
-
};
|
|
124
|
-
var plugins2 = {
|
|
125
|
-
"@eslint-react": react
|
|
126
|
-
};
|
|
127
|
-
var settings2 = {
|
|
128
|
-
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// src/configs/all.ts
|
|
132
|
-
var name4 = "@eslint-react/all";
|
|
133
|
-
var rules3 = {
|
|
134
|
-
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
135
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
136
|
-
"@eslint-react/jsx-no-undef": "error",
|
|
137
|
-
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
138
|
-
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
139
|
-
"@eslint-react/jsx-uses-react": "warn",
|
|
140
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
141
|
-
"@eslint-react/no-access-state-in-setstate": "error",
|
|
142
|
-
"@eslint-react/no-array-index-key": "warn",
|
|
143
|
-
"@eslint-react/no-children-count": "warn",
|
|
144
|
-
"@eslint-react/no-children-for-each": "warn",
|
|
145
|
-
"@eslint-react/no-children-map": "warn",
|
|
146
|
-
"@eslint-react/no-children-only": "warn",
|
|
147
|
-
"@eslint-react/no-children-prop": "warn",
|
|
148
|
-
"@eslint-react/no-children-to-array": "warn",
|
|
149
|
-
"@eslint-react/no-class-component": "warn",
|
|
150
|
-
"@eslint-react/no-clone-element": "warn",
|
|
151
|
-
"@eslint-react/no-component-will-mount": "error",
|
|
152
|
-
"@eslint-react/no-component-will-receive-props": "error",
|
|
153
|
-
"@eslint-react/no-component-will-update": "error",
|
|
154
|
-
"@eslint-react/no-context-provider": "warn",
|
|
155
|
-
"@eslint-react/no-create-ref": "error",
|
|
156
|
-
"@eslint-react/no-default-props": "error",
|
|
157
|
-
"@eslint-react/no-direct-mutation-state": "error",
|
|
158
|
-
"@eslint-react/no-duplicate-key": "warn",
|
|
159
|
-
"@eslint-react/no-forward-ref": "warn",
|
|
160
|
-
"@eslint-react/no-implicit-key": "warn",
|
|
161
|
-
"@eslint-react/no-missing-component-display-name": "warn",
|
|
162
|
-
"@eslint-react/no-missing-context-display-name": "warn",
|
|
163
|
-
"@eslint-react/no-missing-key": "error",
|
|
164
|
-
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
165
|
-
"@eslint-react/no-nested-component-definitions": "error",
|
|
166
|
-
"@eslint-react/no-nested-lazy-component-declarations": "warn",
|
|
167
|
-
"@eslint-react/no-prop-types": "error",
|
|
168
|
-
"@eslint-react/no-redundant-should-component-update": "error",
|
|
169
|
-
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
170
|
-
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
171
|
-
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
172
|
-
"@eslint-react/no-string-refs": "error",
|
|
173
|
-
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
174
|
-
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
175
|
-
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
176
|
-
"@eslint-react/no-unstable-context-value": "warn",
|
|
177
|
-
"@eslint-react/no-unstable-default-props": "warn",
|
|
178
|
-
"@eslint-react/no-unused-class-component-members": "warn",
|
|
179
|
-
"@eslint-react/no-unused-state": "warn",
|
|
180
|
-
"@eslint-react/no-use-context": "warn",
|
|
181
|
-
"@eslint-react/no-useless-forward-ref": "warn",
|
|
182
|
-
"@eslint-react/no-useless-fragment": "warn",
|
|
183
|
-
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
184
|
-
"@eslint-react/prefer-namespace-import": "warn",
|
|
185
|
-
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
186
|
-
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
187
|
-
"@eslint-react/dom/no-find-dom-node": "error",
|
|
188
|
-
"@eslint-react/dom/no-flush-sync": "error",
|
|
189
|
-
"@eslint-react/dom/no-hydrate": "error",
|
|
190
|
-
"@eslint-react/dom/no-missing-button-type": "warn",
|
|
191
|
-
"@eslint-react/dom/no-missing-iframe-sandbox": "warn",
|
|
192
|
-
"@eslint-react/dom/no-namespace": "error",
|
|
193
|
-
"@eslint-react/dom/no-render": "error",
|
|
194
|
-
"@eslint-react/dom/no-render-return-value": "error",
|
|
195
|
-
"@eslint-react/dom/no-script-url": "warn",
|
|
196
|
-
"@eslint-react/dom/no-unknown-property": "warn",
|
|
197
|
-
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
|
|
198
|
-
"@eslint-react/dom/no-unsafe-target-blank": "warn",
|
|
199
|
-
"@eslint-react/dom/no-use-form-state": "error",
|
|
200
|
-
"@eslint-react/dom/no-void-elements-with-children": "error",
|
|
201
|
-
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
202
|
-
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
203
|
-
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
204
|
-
"@eslint-react/web-api/no-leaked-timeout": "warn",
|
|
205
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
206
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
207
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
|
|
208
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
|
|
209
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
|
|
210
|
-
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
211
|
-
"@eslint-react/naming-convention/component-name": "warn",
|
|
212
|
-
"@eslint-react/naming-convention/context-name": "warn",
|
|
213
|
-
"@eslint-react/naming-convention/filename": "warn",
|
|
214
|
-
"@eslint-react/naming-convention/filename-extension": "warn",
|
|
215
|
-
"@eslint-react/naming-convention/use-state": "warn"
|
|
216
|
-
};
|
|
217
|
-
var plugins3 = {
|
|
218
|
-
...plugins2,
|
|
219
|
-
...plugins,
|
|
220
|
-
"@eslint-react/debug": reactDebug,
|
|
221
|
-
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
222
|
-
"@eslint-react/naming-convention": reactNamingConvention,
|
|
223
|
-
"@eslint-react/web-api": reactWebApi
|
|
224
|
-
};
|
|
225
|
-
var settings3 = {
|
|
226
|
-
...settings
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// src/configs/debug.ts
|
|
230
|
-
var debug_exports = {};
|
|
231
|
-
__export(debug_exports, {
|
|
232
|
-
name: () => name5,
|
|
233
|
-
plugins: () => plugins4,
|
|
234
|
-
rules: () => rules4
|
|
235
|
-
});
|
|
236
|
-
var name5 = "@eslint-react/debug";
|
|
237
|
-
var rules4 = {
|
|
238
|
-
"@eslint-react/debug/class-component": "warn",
|
|
239
|
-
"@eslint-react/debug/function-component": "warn",
|
|
240
|
-
"@eslint-react/debug/hook": "warn",
|
|
241
|
-
"@eslint-react/debug/is-from-react": "warn",
|
|
242
|
-
"@eslint-react/debug/jsx": "warn"
|
|
243
|
-
};
|
|
244
|
-
var plugins4 = {
|
|
245
|
-
"@eslint-react/debug": reactDebug
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
// src/configs/disable-debug.ts
|
|
249
|
-
var disable_debug_exports = {};
|
|
250
|
-
__export(disable_debug_exports, {
|
|
251
|
-
name: () => name6,
|
|
252
|
-
rules: () => rules5
|
|
253
|
-
});
|
|
254
|
-
var name6 = "@eslint-react/disable-debug";
|
|
255
|
-
var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
|
|
256
|
-
|
|
257
|
-
// src/configs/disable-dom.ts
|
|
258
|
-
var disable_dom_exports = {};
|
|
259
|
-
__export(disable_dom_exports, {
|
|
260
|
-
name: () => name7,
|
|
261
|
-
rules: () => rules6
|
|
262
|
-
});
|
|
263
|
-
var name7 = "@eslint-react/disable-dom";
|
|
264
|
-
var rules6 = Object.fromEntries(Object.entries(rules).map(([key]) => [key, "off"]));
|
|
265
|
-
|
|
266
|
-
// src/configs/disable-type-checked.ts
|
|
267
|
-
var disable_type_checked_exports = {};
|
|
268
|
-
__export(disable_type_checked_exports, {
|
|
269
|
-
name: () => name8,
|
|
270
|
-
rules: () => rules7
|
|
271
|
-
});
|
|
272
|
-
var name8 = "@eslint-react/disable-type-checked";
|
|
273
|
-
var rules7 = {
|
|
274
|
-
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
275
|
-
"@eslint-react/prefer-read-only-props": "off"
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
// src/configs/disable-web-api.ts
|
|
279
|
-
var disable_web_api_exports = {};
|
|
280
|
-
__export(disable_web_api_exports, {
|
|
281
|
-
name: () => name9,
|
|
282
|
-
rules: () => rules9
|
|
283
|
-
});
|
|
284
|
-
var rules8 = {
|
|
285
|
-
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
286
|
-
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
287
|
-
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
288
|
-
"@eslint-react/web-api/no-leaked-timeout": "warn"
|
|
289
|
-
};
|
|
290
|
-
var plugins5 = {
|
|
291
|
-
"@eslint-react/web-api": reactWebApi
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
// src/configs/disable-web-api.ts
|
|
295
|
-
var name9 = "@eslint-react/disable-web-api";
|
|
296
|
-
var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
|
|
297
|
-
|
|
298
|
-
// src/configs/off.ts
|
|
299
|
-
var off_exports = {};
|
|
300
|
-
__export(off_exports, {
|
|
301
|
-
name: () => name10,
|
|
302
|
-
rules: () => rules10
|
|
303
|
-
});
|
|
304
|
-
var name10 = "@eslint-react/off";
|
|
305
|
-
var rules10 = {
|
|
306
|
-
...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
|
|
307
|
-
...rules7
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
// src/configs/recommended.ts
|
|
311
|
-
var recommended_exports = {};
|
|
312
|
-
__export(recommended_exports, {
|
|
313
|
-
name: () => name11,
|
|
314
|
-
plugins: () => plugins6,
|
|
315
|
-
rules: () => rules11,
|
|
316
|
-
settings: () => settings5
|
|
317
|
-
});
|
|
318
|
-
var name11 = "@eslint-react/recommended";
|
|
319
|
-
var rules11 = {
|
|
320
|
-
...rules2,
|
|
321
|
-
...rules,
|
|
322
|
-
...rules8,
|
|
323
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
324
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
|
|
325
|
-
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
326
|
-
"@eslint-react/naming-convention/context-name": "warn"
|
|
327
|
-
// "@eslint-react/naming-convention/use-state": "warn",
|
|
328
|
-
};
|
|
329
|
-
var plugins6 = {
|
|
330
|
-
...plugins2,
|
|
331
|
-
...plugins,
|
|
332
|
-
...plugins5,
|
|
333
|
-
"@eslint-react/debug": reactDebug,
|
|
334
|
-
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
335
|
-
"@eslint-react/naming-convention": reactNamingConvention
|
|
336
|
-
};
|
|
337
|
-
var settings5 = {
|
|
338
|
-
...settings
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
// src/configs/recommended-type-checked.ts
|
|
342
|
-
var recommended_type_checked_exports = {};
|
|
343
|
-
__export(recommended_type_checked_exports, {
|
|
344
|
-
name: () => name13,
|
|
345
|
-
plugins: () => plugins8,
|
|
346
|
-
rules: () => rules13,
|
|
347
|
-
settings: () => settings7
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
// src/configs/recommended-typescript.ts
|
|
351
|
-
var recommended_typescript_exports = {};
|
|
352
|
-
__export(recommended_typescript_exports, {
|
|
353
|
-
name: () => name12,
|
|
354
|
-
plugins: () => plugins7,
|
|
355
|
-
rules: () => rules12,
|
|
356
|
-
settings: () => settings6
|
|
357
|
-
});
|
|
358
|
-
var name12 = "@eslint-react/recommended-typescript";
|
|
359
|
-
var rules12 = {
|
|
360
|
-
...rules11,
|
|
361
|
-
"@eslint-react/dom/no-unknown-property": "off",
|
|
362
|
-
"@eslint-react/jsx-no-duplicate-props": "off",
|
|
363
|
-
"@eslint-react/jsx-uses-react": "off",
|
|
364
|
-
"@eslint-react/jsx-uses-vars": "off"
|
|
365
|
-
};
|
|
366
|
-
var plugins7 = {
|
|
367
|
-
...plugins6
|
|
368
|
-
};
|
|
369
|
-
var settings6 = {
|
|
370
|
-
...settings5
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
// src/configs/recommended-type-checked.ts
|
|
374
|
-
var name13 = "@eslint-react/recommended-type-checked";
|
|
375
|
-
var rules13 = {
|
|
376
|
-
...rules12,
|
|
377
|
-
"@eslint-react/no-leaked-conditional-rendering": "warn"
|
|
378
|
-
// "@eslint-react/prefer-read-only-props": "warn",
|
|
379
|
-
};
|
|
380
|
-
var plugins8 = {
|
|
381
|
-
...plugins7
|
|
382
|
-
};
|
|
383
|
-
var settings7 = {
|
|
384
|
-
...settings6
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
// src/utils/type-of.ts
|
|
388
|
-
function typeOf(t) {
|
|
389
|
-
return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
// src/utils/transform-keys.ts
|
|
393
|
-
function transformKeys(obj, transform) {
|
|
394
|
-
if (typeOf(obj) !== "object") {
|
|
395
|
-
return obj;
|
|
396
|
-
}
|
|
397
|
-
const res = {};
|
|
398
|
-
for (const key in obj) {
|
|
399
|
-
res[transform(key)] = obj[key];
|
|
400
|
-
}
|
|
401
|
-
return res;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// src/utils/pad-keys-left.ts
|
|
405
|
-
function padKeysLeft(obj, left) {
|
|
406
|
-
return transformKeys(obj, (key) => `${left}${key}`);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// src/index.ts
|
|
410
|
-
function toLegacyConfig({ rules: rules14 }) {
|
|
411
|
-
return {
|
|
412
|
-
plugins: ["@eslint-react"],
|
|
413
|
-
rules: rules14
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
var index_default = {
|
|
417
|
-
meta: {
|
|
418
|
-
name,
|
|
419
|
-
version
|
|
420
|
-
},
|
|
421
|
-
configs: {
|
|
422
|
-
["all"]: all_exports,
|
|
423
|
-
["all-legacy"]: toLegacyConfig(all_exports),
|
|
424
|
-
["debug"]: debug_exports,
|
|
425
|
-
["debug-legacy"]: toLegacyConfig(debug_exports),
|
|
426
|
-
["disable-debug"]: disable_debug_exports,
|
|
427
|
-
["disable-debug-legacy"]: toLegacyConfig(disable_debug_exports),
|
|
428
|
-
["disable-dom"]: disable_dom_exports,
|
|
429
|
-
["disable-dom-legacy"]: toLegacyConfig(disable_dom_exports),
|
|
430
|
-
["disable-type-checked"]: disable_type_checked_exports,
|
|
431
|
-
["disable-type-checked-legacy"]: toLegacyConfig(disable_type_checked_exports),
|
|
432
|
-
["disable-web-api"]: disable_web_api_exports,
|
|
433
|
-
["disable-web-api-legacy"]: toLegacyConfig(disable_web_api_exports),
|
|
434
|
-
["dom"]: dom_exports,
|
|
435
|
-
["dom-legacy"]: toLegacyConfig(dom_exports),
|
|
436
|
-
["off"]: off_exports,
|
|
437
|
-
["off-legacy"]: toLegacyConfig(off_exports),
|
|
438
|
-
["recommended"]: recommended_exports,
|
|
439
|
-
["recommended-legacy"]: toLegacyConfig(recommended_exports),
|
|
440
|
-
["recommended-type-checked"]: recommended_type_checked_exports,
|
|
441
|
-
["recommended-type-checked-legacy"]: toLegacyConfig(recommended_type_checked_exports),
|
|
442
|
-
["recommended-typescript"]: recommended_typescript_exports,
|
|
443
|
-
["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
|
|
444
|
-
["x"]: x_exports,
|
|
445
|
-
["x-legacy"]: toLegacyConfig(x_exports)
|
|
446
|
-
},
|
|
447
|
-
rules: {
|
|
448
|
-
...react.rules,
|
|
449
|
-
...padKeysLeft(reactDom.rules, "dom/"),
|
|
450
|
-
...padKeysLeft(reactWebApi.rules, "web-api/"),
|
|
451
|
-
...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
|
|
452
|
-
...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
|
|
453
|
-
...padKeysLeft(reactDebug.rules, "debug/")
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
export { index_default as default };
|