@eslint-react/eslint-plugin 1.24.1-beta.1 → 1.24.1-next.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/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- import { RulePreset } from '@eslint-react/shared';
3
2
 
4
3
  declare const name$b = "@eslint-react/all";
5
4
  declare const rules$b: {
@@ -423,28 +422,53 @@ declare namespace debugConfig {
423
422
  }
424
423
 
425
424
  declare const name$8 = "@eslint-react/disable-debug";
426
- declare const rules$8: RulePreset;
425
+ declare const rules$8: {
426
+ "@eslint-react/debug/class-component"?: "off";
427
+ "@eslint-react/debug/function-component"?: "off";
428
+ "@eslint-react/debug/hook"?: "off";
429
+ "@eslint-react/debug/is-from-react"?: "off";
430
+ };
427
431
 
428
432
  declare namespace disableDebugConfig {
429
433
  export { name$8 as name, rules$8 as rules };
430
434
  }
431
435
 
432
436
  declare const name$7 = "@eslint-react/disable-dom";
433
- declare const rules$7: RulePreset;
437
+ declare const rules$7: {
438
+ "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
439
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
440
+ "@eslint-react/dom/no-find-dom-node"?: "off";
441
+ "@eslint-react/dom/no-missing-button-type"?: "off";
442
+ "@eslint-react/dom/no-missing-iframe-sandbox"?: "off";
443
+ "@eslint-react/dom/no-namespace"?: "off";
444
+ "@eslint-react/dom/no-render-return-value"?: "off";
445
+ "@eslint-react/dom/no-script-url"?: "off";
446
+ "@eslint-react/dom/no-unsafe-iframe-sandbox"?: "off";
447
+ "@eslint-react/dom/no-unsafe-target-blank"?: "off";
448
+ "@eslint-react/dom/no-void-elements-with-children"?: "off";
449
+ };
434
450
 
435
451
  declare namespace disableDomConfig {
436
452
  export { name$7 as name, rules$7 as rules };
437
453
  }
438
454
 
439
455
  declare const name$6 = "@eslint-react/disable-type-checked";
440
- declare const rules$6: RulePreset;
456
+ declare const rules$6: {
457
+ readonly "@eslint-react/no-leaked-conditional-rendering": "off";
458
+ readonly "@eslint-react/prefer-read-only-props": "off";
459
+ };
441
460
 
442
461
  declare namespace disableTypeCheckedConfig {
443
462
  export { name$6 as name, rules$6 as rules };
444
463
  }
445
464
 
446
465
  declare const name$5 = "@eslint-react/disable-web-api";
447
- declare const rules$5: RulePreset;
466
+ declare const rules$5: {
467
+ "@eslint-react/web-api/no-leaked-event-listener"?: "off";
468
+ "@eslint-react/web-api/no-leaked-interval"?: "off";
469
+ "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
470
+ "@eslint-react/web-api/no-leaked-timeout"?: "off";
471
+ };
448
472
 
449
473
  declare namespace disableWebApiConfig {
450
474
  export { name$5 as name, rules$5 as rules };
@@ -518,7 +542,81 @@ declare namespace domConfig {
518
542
  }
519
543
 
520
544
  declare const name$3 = "@eslint-react/off";
521
- declare const rules$3: RulePreset;
545
+ declare const rules$3: {
546
+ "@eslint-react/no-leaked-conditional-rendering": "off";
547
+ "@eslint-react/prefer-read-only-props": "off";
548
+ "@eslint-react/ensure-forward-ref-using-ref"?: "off";
549
+ "@eslint-react/no-access-state-in-setstate"?: "off";
550
+ "@eslint-react/no-array-index-key"?: "off";
551
+ "@eslint-react/no-children-count"?: "off";
552
+ "@eslint-react/no-children-for-each"?: "off";
553
+ "@eslint-react/no-children-map"?: "off";
554
+ "@eslint-react/no-children-only"?: "off";
555
+ "@eslint-react/no-children-prop"?: "off";
556
+ "@eslint-react/no-children-to-array"?: "off";
557
+ "@eslint-react/no-class-component"?: "off";
558
+ "@eslint-react/no-clone-element"?: "off";
559
+ "@eslint-react/no-comment-textnodes"?: "off";
560
+ "@eslint-react/no-complex-conditional-rendering"?: "off";
561
+ "@eslint-react/no-component-will-mount"?: "off";
562
+ "@eslint-react/no-component-will-receive-props"?: "off";
563
+ "@eslint-react/no-component-will-update"?: "off";
564
+ "@eslint-react/no-context-provider"?: "off";
565
+ "@eslint-react/no-create-ref"?: "off";
566
+ "@eslint-react/no-default-props"?: "off";
567
+ "@eslint-react/no-direct-mutation-state"?: "off";
568
+ "@eslint-react/no-duplicate-jsx-props"?: "off";
569
+ "@eslint-react/no-duplicate-key"?: "off";
570
+ "@eslint-react/no-forward-ref"?: "off";
571
+ "@eslint-react/no-implicit-key"?: "off";
572
+ "@eslint-react/no-missing-component-display-name"?: "off";
573
+ "@eslint-react/no-missing-key"?: "off";
574
+ "@eslint-react/no-nested-components"?: "off";
575
+ "@eslint-react/no-prop-types"?: "off";
576
+ "@eslint-react/no-redundant-should-component-update"?: "off";
577
+ "@eslint-react/no-set-state-in-component-did-mount"?: "off";
578
+ "@eslint-react/no-set-state-in-component-did-update"?: "off";
579
+ "@eslint-react/no-set-state-in-component-will-update"?: "off";
580
+ "@eslint-react/no-string-refs"?: "off";
581
+ "@eslint-react/no-unsafe-component-will-mount"?: "off";
582
+ "@eslint-react/no-unsafe-component-will-receive-props"?: "off";
583
+ "@eslint-react/no-unsafe-component-will-update"?: "off";
584
+ "@eslint-react/no-unstable-context-value"?: "off";
585
+ "@eslint-react/no-unstable-default-props"?: "off";
586
+ "@eslint-react/no-unused-class-component-members"?: "off";
587
+ "@eslint-react/no-unused-state"?: "off";
588
+ "@eslint-react/no-useless-fragment"?: "off";
589
+ "@eslint-react/prefer-destructuring-assignment"?: "off";
590
+ "@eslint-react/prefer-shorthand-boolean"?: "off";
591
+ "@eslint-react/prefer-shorthand-fragment"?: "off";
592
+ "@eslint-react/use-jsx-vars"?: "off";
593
+ "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
594
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
595
+ "@eslint-react/dom/no-find-dom-node"?: "off";
596
+ "@eslint-react/dom/no-missing-button-type"?: "off";
597
+ "@eslint-react/dom/no-missing-iframe-sandbox"?: "off";
598
+ "@eslint-react/dom/no-namespace"?: "off";
599
+ "@eslint-react/dom/no-render-return-value"?: "off";
600
+ "@eslint-react/dom/no-script-url"?: "off";
601
+ "@eslint-react/dom/no-unknown-property"?: "off";
602
+ "@eslint-react/dom/no-unsafe-iframe-sandbox"?: "off";
603
+ "@eslint-react/dom/no-unsafe-target-blank"?: "off";
604
+ "@eslint-react/dom/no-void-elements-with-children"?: "off";
605
+ "@eslint-react/web-api/no-leaked-event-listener"?: "off";
606
+ "@eslint-react/web-api/no-leaked-interval"?: "off";
607
+ "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
608
+ "@eslint-react/web-api/no-leaked-timeout"?: "off";
609
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
610
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
611
+ "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
612
+ "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
613
+ "@eslint-react/hooks-extra/no-useless-custom-hooks"?: "off";
614
+ "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
615
+ "@eslint-react/naming-convention/component-name"?: "off";
616
+ "@eslint-react/naming-convention/filename"?: "off";
617
+ "@eslint-react/naming-convention/filename-extension"?: "off";
618
+ "@eslint-react/naming-convention/use-state"?: "off";
619
+ };
522
620
 
523
621
  declare namespace offConfig {
524
622
  export { name$3 as name, rules$3 as rules };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
- import { RulePreset } from '@eslint-react/shared';
3
2
 
4
3
  declare const name$b = "@eslint-react/all";
5
4
  declare const rules$b: {
@@ -423,28 +422,53 @@ declare namespace debugConfig {
423
422
  }
424
423
 
425
424
  declare const name$8 = "@eslint-react/disable-debug";
426
- declare const rules$8: RulePreset;
425
+ declare const rules$8: {
426
+ "@eslint-react/debug/class-component"?: "off";
427
+ "@eslint-react/debug/function-component"?: "off";
428
+ "@eslint-react/debug/hook"?: "off";
429
+ "@eslint-react/debug/is-from-react"?: "off";
430
+ };
427
431
 
428
432
  declare namespace disableDebugConfig {
429
433
  export { name$8 as name, rules$8 as rules };
430
434
  }
431
435
 
432
436
  declare const name$7 = "@eslint-react/disable-dom";
433
- declare const rules$7: RulePreset;
437
+ declare const rules$7: {
438
+ "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
439
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
440
+ "@eslint-react/dom/no-find-dom-node"?: "off";
441
+ "@eslint-react/dom/no-missing-button-type"?: "off";
442
+ "@eslint-react/dom/no-missing-iframe-sandbox"?: "off";
443
+ "@eslint-react/dom/no-namespace"?: "off";
444
+ "@eslint-react/dom/no-render-return-value"?: "off";
445
+ "@eslint-react/dom/no-script-url"?: "off";
446
+ "@eslint-react/dom/no-unsafe-iframe-sandbox"?: "off";
447
+ "@eslint-react/dom/no-unsafe-target-blank"?: "off";
448
+ "@eslint-react/dom/no-void-elements-with-children"?: "off";
449
+ };
434
450
 
435
451
  declare namespace disableDomConfig {
436
452
  export { name$7 as name, rules$7 as rules };
437
453
  }
438
454
 
439
455
  declare const name$6 = "@eslint-react/disable-type-checked";
440
- declare const rules$6: RulePreset;
456
+ declare const rules$6: {
457
+ readonly "@eslint-react/no-leaked-conditional-rendering": "off";
458
+ readonly "@eslint-react/prefer-read-only-props": "off";
459
+ };
441
460
 
442
461
  declare namespace disableTypeCheckedConfig {
443
462
  export { name$6 as name, rules$6 as rules };
444
463
  }
445
464
 
446
465
  declare const name$5 = "@eslint-react/disable-web-api";
447
- declare const rules$5: RulePreset;
466
+ declare const rules$5: {
467
+ "@eslint-react/web-api/no-leaked-event-listener"?: "off";
468
+ "@eslint-react/web-api/no-leaked-interval"?: "off";
469
+ "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
470
+ "@eslint-react/web-api/no-leaked-timeout"?: "off";
471
+ };
448
472
 
449
473
  declare namespace disableWebApiConfig {
450
474
  export { name$5 as name, rules$5 as rules };
@@ -518,7 +542,81 @@ declare namespace domConfig {
518
542
  }
519
543
 
520
544
  declare const name$3 = "@eslint-react/off";
521
- declare const rules$3: RulePreset;
545
+ declare const rules$3: {
546
+ "@eslint-react/no-leaked-conditional-rendering": "off";
547
+ "@eslint-react/prefer-read-only-props": "off";
548
+ "@eslint-react/ensure-forward-ref-using-ref"?: "off";
549
+ "@eslint-react/no-access-state-in-setstate"?: "off";
550
+ "@eslint-react/no-array-index-key"?: "off";
551
+ "@eslint-react/no-children-count"?: "off";
552
+ "@eslint-react/no-children-for-each"?: "off";
553
+ "@eslint-react/no-children-map"?: "off";
554
+ "@eslint-react/no-children-only"?: "off";
555
+ "@eslint-react/no-children-prop"?: "off";
556
+ "@eslint-react/no-children-to-array"?: "off";
557
+ "@eslint-react/no-class-component"?: "off";
558
+ "@eslint-react/no-clone-element"?: "off";
559
+ "@eslint-react/no-comment-textnodes"?: "off";
560
+ "@eslint-react/no-complex-conditional-rendering"?: "off";
561
+ "@eslint-react/no-component-will-mount"?: "off";
562
+ "@eslint-react/no-component-will-receive-props"?: "off";
563
+ "@eslint-react/no-component-will-update"?: "off";
564
+ "@eslint-react/no-context-provider"?: "off";
565
+ "@eslint-react/no-create-ref"?: "off";
566
+ "@eslint-react/no-default-props"?: "off";
567
+ "@eslint-react/no-direct-mutation-state"?: "off";
568
+ "@eslint-react/no-duplicate-jsx-props"?: "off";
569
+ "@eslint-react/no-duplicate-key"?: "off";
570
+ "@eslint-react/no-forward-ref"?: "off";
571
+ "@eslint-react/no-implicit-key"?: "off";
572
+ "@eslint-react/no-missing-component-display-name"?: "off";
573
+ "@eslint-react/no-missing-key"?: "off";
574
+ "@eslint-react/no-nested-components"?: "off";
575
+ "@eslint-react/no-prop-types"?: "off";
576
+ "@eslint-react/no-redundant-should-component-update"?: "off";
577
+ "@eslint-react/no-set-state-in-component-did-mount"?: "off";
578
+ "@eslint-react/no-set-state-in-component-did-update"?: "off";
579
+ "@eslint-react/no-set-state-in-component-will-update"?: "off";
580
+ "@eslint-react/no-string-refs"?: "off";
581
+ "@eslint-react/no-unsafe-component-will-mount"?: "off";
582
+ "@eslint-react/no-unsafe-component-will-receive-props"?: "off";
583
+ "@eslint-react/no-unsafe-component-will-update"?: "off";
584
+ "@eslint-react/no-unstable-context-value"?: "off";
585
+ "@eslint-react/no-unstable-default-props"?: "off";
586
+ "@eslint-react/no-unused-class-component-members"?: "off";
587
+ "@eslint-react/no-unused-state"?: "off";
588
+ "@eslint-react/no-useless-fragment"?: "off";
589
+ "@eslint-react/prefer-destructuring-assignment"?: "off";
590
+ "@eslint-react/prefer-shorthand-boolean"?: "off";
591
+ "@eslint-react/prefer-shorthand-fragment"?: "off";
592
+ "@eslint-react/use-jsx-vars"?: "off";
593
+ "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
594
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
595
+ "@eslint-react/dom/no-find-dom-node"?: "off";
596
+ "@eslint-react/dom/no-missing-button-type"?: "off";
597
+ "@eslint-react/dom/no-missing-iframe-sandbox"?: "off";
598
+ "@eslint-react/dom/no-namespace"?: "off";
599
+ "@eslint-react/dom/no-render-return-value"?: "off";
600
+ "@eslint-react/dom/no-script-url"?: "off";
601
+ "@eslint-react/dom/no-unknown-property"?: "off";
602
+ "@eslint-react/dom/no-unsafe-iframe-sandbox"?: "off";
603
+ "@eslint-react/dom/no-unsafe-target-blank"?: "off";
604
+ "@eslint-react/dom/no-void-elements-with-children"?: "off";
605
+ "@eslint-react/web-api/no-leaked-event-listener"?: "off";
606
+ "@eslint-react/web-api/no-leaked-interval"?: "off";
607
+ "@eslint-react/web-api/no-leaked-resize-observer"?: "off";
608
+ "@eslint-react/web-api/no-leaked-timeout"?: "off";
609
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
610
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
611
+ "@eslint-react/hooks-extra/no-unnecessary-use-callback"?: "off";
612
+ "@eslint-react/hooks-extra/no-unnecessary-use-memo"?: "off";
613
+ "@eslint-react/hooks-extra/no-useless-custom-hooks"?: "off";
614
+ "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
615
+ "@eslint-react/naming-convention/component-name"?: "off";
616
+ "@eslint-react/naming-convention/filename"?: "off";
617
+ "@eslint-react/naming-convention/filename-extension"?: "off";
618
+ "@eslint-react/naming-convention/use-state"?: "off";
619
+ };
522
620
 
523
621
  declare namespace offConfig {
524
622
  export { name$3 as name, rules$3 as rules };
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ var __export = (target, all) => {
25
25
 
26
26
  // package.json
27
27
  var name = "@eslint-react/eslint-plugin";
28
- var version = "1.24.1-beta.1";
28
+ var version = "1.24.1-next.0";
29
29
 
30
30
  // src/configs/all.ts
31
31
  var all_exports = {};
@@ -235,8 +235,40 @@ __export(disable_debug_exports, {
235
235
  name: () => name6,
236
236
  rules: () => rules5
237
237
  });
238
+
239
+ // src/utils/entries.ts
240
+ function entries(...args) {
241
+ return Object.entries(args);
242
+ }
243
+ function fromEntries(...args) {
244
+ return Object.fromEntries(args);
245
+ }
246
+
247
+ // src/utils/type-of.ts
248
+ function typeOf(t) {
249
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
250
+ }
251
+
252
+ // src/utils/transform-keys.ts
253
+ function transformKeys(obj, transform) {
254
+ if (typeOf(obj) !== "object") {
255
+ return obj;
256
+ }
257
+ const res = {};
258
+ for (const key in obj) {
259
+ res[transform(key)] = obj[key];
260
+ }
261
+ return res;
262
+ }
263
+
264
+ // src/utils/pad-keys-left.ts
265
+ function padKeysLeft(obj, left) {
266
+ return transformKeys(obj, (key) => `${left}${key}`);
267
+ }
268
+
269
+ // src/configs/disable-debug.ts
238
270
  var name6 = "@eslint-react/disable-debug";
239
- var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
271
+ var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
240
272
 
241
273
  // src/configs/disable-dom.ts
242
274
  var disable_dom_exports = {};
@@ -245,7 +277,7 @@ __export(disable_dom_exports, {
245
277
  rules: () => rules6
246
278
  });
247
279
  var name7 = "@eslint-react/disable-dom";
248
- var rules6 = Object.fromEntries(Object.entries(rules2).map(([key]) => [key, "off"]));
280
+ var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
249
281
 
250
282
  // src/configs/disable-type-checked.ts
251
283
  var disable_type_checked_exports = {};
@@ -277,7 +309,7 @@ var plugins5 = {
277
309
 
278
310
  // src/configs/disable-web-api.ts
279
311
  var name9 = "@eslint-react/disable-web-api";
280
- var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
312
+ var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
281
313
 
282
314
  // src/configs/off.ts
283
315
  var off_exports = {};
@@ -287,7 +319,7 @@ __export(off_exports, {
287
319
  });
288
320
  var name10 = "@eslint-react/off";
289
321
  var rules10 = {
290
- ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
322
+ ...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
291
323
  ...rules7
292
324
  };
293
325
 
@@ -365,28 +397,6 @@ var settings7 = {
365
397
  ...settings6
366
398
  };
367
399
 
368
- // src/utils/type-of.ts
369
- function typeOf(t) {
370
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
371
- }
372
-
373
- // src/utils/transform-keys.ts
374
- function transformKeys(obj, transform) {
375
- if (typeOf(obj) !== "object") {
376
- return obj;
377
- }
378
- const res = {};
379
- for (const key in obj) {
380
- res[transform(key)] = obj[key];
381
- }
382
- return res;
383
- }
384
-
385
- // src/utils/pad-keys-left.ts
386
- function padKeysLeft(obj, left) {
387
- return transformKeys(obj, (key) => `${left}${key}`);
388
- }
389
-
390
400
  // src/index.ts
391
401
  function makeLegacyConfig(config) {
392
402
  const { name: drop, ...rest } = config;
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __export = (target, all) => {
14
14
 
15
15
  // package.json
16
16
  var name = "@eslint-react/eslint-plugin";
17
- var version = "1.24.1-beta.1";
17
+ var version = "1.24.1-next.0";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -224,8 +224,40 @@ __export(disable_debug_exports, {
224
224
  name: () => name6,
225
225
  rules: () => rules5
226
226
  });
227
+
228
+ // src/utils/entries.ts
229
+ function entries(...args) {
230
+ return Object.entries(args);
231
+ }
232
+ function fromEntries(...args) {
233
+ return Object.fromEntries(args);
234
+ }
235
+
236
+ // src/utils/type-of.ts
237
+ function typeOf(t) {
238
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
239
+ }
240
+
241
+ // src/utils/transform-keys.ts
242
+ function transformKeys(obj, transform) {
243
+ if (typeOf(obj) !== "object") {
244
+ return obj;
245
+ }
246
+ const res = {};
247
+ for (const key in obj) {
248
+ res[transform(key)] = obj[key];
249
+ }
250
+ return res;
251
+ }
252
+
253
+ // src/utils/pad-keys-left.ts
254
+ function padKeysLeft(obj, left) {
255
+ return transformKeys(obj, (key) => `${left}${key}`);
256
+ }
257
+
258
+ // src/configs/disable-debug.ts
227
259
  var name6 = "@eslint-react/disable-debug";
228
- var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
260
+ var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
229
261
 
230
262
  // src/configs/disable-dom.ts
231
263
  var disable_dom_exports = {};
@@ -234,7 +266,7 @@ __export(disable_dom_exports, {
234
266
  rules: () => rules6
235
267
  });
236
268
  var name7 = "@eslint-react/disable-dom";
237
- var rules6 = Object.fromEntries(Object.entries(rules2).map(([key]) => [key, "off"]));
269
+ var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
238
270
 
239
271
  // src/configs/disable-type-checked.ts
240
272
  var disable_type_checked_exports = {};
@@ -266,7 +298,7 @@ var plugins5 = {
266
298
 
267
299
  // src/configs/disable-web-api.ts
268
300
  var name9 = "@eslint-react/disable-web-api";
269
- var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
301
+ var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
270
302
 
271
303
  // src/configs/off.ts
272
304
  var off_exports = {};
@@ -276,7 +308,7 @@ __export(off_exports, {
276
308
  });
277
309
  var name10 = "@eslint-react/off";
278
310
  var rules10 = {
279
- ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
311
+ ...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
280
312
  ...rules7
281
313
  };
282
314
 
@@ -354,28 +386,6 @@ var settings7 = {
354
386
  ...settings6
355
387
  };
356
388
 
357
- // src/utils/type-of.ts
358
- function typeOf(t) {
359
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
360
- }
361
-
362
- // src/utils/transform-keys.ts
363
- function transformKeys(obj, transform) {
364
- if (typeOf(obj) !== "object") {
365
- return obj;
366
- }
367
- const res = {};
368
- for (const key in obj) {
369
- res[transform(key)] = obj[key];
370
- }
371
- return res;
372
- }
373
-
374
- // src/utils/pad-keys-left.ts
375
- function padKeysLeft(obj, left) {
376
- return transformKeys(obj, (key) => `${left}${key}`);
377
- }
378
-
379
389
  // src/index.ts
380
390
  function makeLegacyConfig(config) {
381
391
  const { name: drop, ...rest } = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.24.1-beta.1",
3
+ "version": "1.24.1-next.0",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -48,14 +48,14 @@
48
48
  "@typescript-eslint/type-utils": "^8.21.0",
49
49
  "@typescript-eslint/types": "^8.21.0",
50
50
  "@typescript-eslint/utils": "^8.21.0",
51
- "@eslint-react/eff": "1.24.1-beta.1",
52
- "eslint-plugin-react-dom": "1.24.1-beta.1",
53
- "eslint-plugin-react-debug": "1.24.1-beta.1",
54
- "eslint-plugin-react-hooks-extra": "1.24.1-beta.1",
55
- "eslint-plugin-react-naming-convention": "1.24.1-beta.1",
56
- "@eslint-react/shared": "1.24.1-beta.1",
57
- "eslint-plugin-react-web-api": "1.24.1-beta.1",
58
- "eslint-plugin-react-x": "1.24.1-beta.1"
51
+ "@eslint-react/eff": "1.24.1-next.0",
52
+ "@eslint-react/shared": "1.24.1-next.0",
53
+ "eslint-plugin-react-dom": "1.24.1-next.0",
54
+ "eslint-plugin-react-debug": "1.24.1-next.0",
55
+ "eslint-plugin-react-hooks-extra": "1.24.1-next.0",
56
+ "eslint-plugin-react-web-api": "1.24.1-next.0",
57
+ "eslint-plugin-react-x": "1.24.1-next.0",
58
+ "eslint-plugin-react-naming-convention": "1.24.1-next.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "^8.3.5",