@eslint-react/eslint-plugin 1.24.1-next.0 → 1.24.1

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,4 +1,5 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
+ import { RulePreset } from '@eslint-react/shared';
2
3
 
3
4
  declare const name$b = "@eslint-react/all";
4
5
  declare const rules$b: {
@@ -422,53 +423,28 @@ declare namespace debugConfig {
422
423
  }
423
424
 
424
425
  declare const name$8 = "@eslint-react/disable-debug";
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
- };
426
+ declare const rules$8: RulePreset;
431
427
 
432
428
  declare namespace disableDebugConfig {
433
429
  export { name$8 as name, rules$8 as rules };
434
430
  }
435
431
 
436
432
  declare const name$7 = "@eslint-react/disable-dom";
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
- };
433
+ declare const rules$7: RulePreset;
450
434
 
451
435
  declare namespace disableDomConfig {
452
436
  export { name$7 as name, rules$7 as rules };
453
437
  }
454
438
 
455
439
  declare const name$6 = "@eslint-react/disable-type-checked";
456
- declare const rules$6: {
457
- readonly "@eslint-react/no-leaked-conditional-rendering": "off";
458
- readonly "@eslint-react/prefer-read-only-props": "off";
459
- };
440
+ declare const rules$6: RulePreset;
460
441
 
461
442
  declare namespace disableTypeCheckedConfig {
462
443
  export { name$6 as name, rules$6 as rules };
463
444
  }
464
445
 
465
446
  declare const name$5 = "@eslint-react/disable-web-api";
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
- };
447
+ declare const rules$5: RulePreset;
472
448
 
473
449
  declare namespace disableWebApiConfig {
474
450
  export { name$5 as name, rules$5 as rules };
@@ -542,81 +518,7 @@ declare namespace domConfig {
542
518
  }
543
519
 
544
520
  declare const name$3 = "@eslint-react/off";
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
- };
521
+ declare const rules$3: RulePreset;
620
522
 
621
523
  declare namespace offConfig {
622
524
  export { name$3 as name, rules$3 as rules };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
+ import { RulePreset } from '@eslint-react/shared';
2
3
 
3
4
  declare const name$b = "@eslint-react/all";
4
5
  declare const rules$b: {
@@ -422,53 +423,28 @@ declare namespace debugConfig {
422
423
  }
423
424
 
424
425
  declare const name$8 = "@eslint-react/disable-debug";
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
- };
426
+ declare const rules$8: RulePreset;
431
427
 
432
428
  declare namespace disableDebugConfig {
433
429
  export { name$8 as name, rules$8 as rules };
434
430
  }
435
431
 
436
432
  declare const name$7 = "@eslint-react/disable-dom";
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
- };
433
+ declare const rules$7: RulePreset;
450
434
 
451
435
  declare namespace disableDomConfig {
452
436
  export { name$7 as name, rules$7 as rules };
453
437
  }
454
438
 
455
439
  declare const name$6 = "@eslint-react/disable-type-checked";
456
- declare const rules$6: {
457
- readonly "@eslint-react/no-leaked-conditional-rendering": "off";
458
- readonly "@eslint-react/prefer-read-only-props": "off";
459
- };
440
+ declare const rules$6: RulePreset;
460
441
 
461
442
  declare namespace disableTypeCheckedConfig {
462
443
  export { name$6 as name, rules$6 as rules };
463
444
  }
464
445
 
465
446
  declare const name$5 = "@eslint-react/disable-web-api";
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
- };
447
+ declare const rules$5: RulePreset;
472
448
 
473
449
  declare namespace disableWebApiConfig {
474
450
  export { name$5 as name, rules$5 as rules };
@@ -542,81 +518,7 @@ declare namespace domConfig {
542
518
  }
543
519
 
544
520
  declare const name$3 = "@eslint-react/off";
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
- };
521
+ declare const rules$3: RulePreset;
620
522
 
621
523
  declare namespace offConfig {
622
524
  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-next.0";
28
+ var version = "1.24.1";
29
29
 
30
30
  // src/configs/all.ts
31
31
  var all_exports = {};
@@ -235,40 +235,8 @@ __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
270
238
  var name6 = "@eslint-react/disable-debug";
271
- var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
239
+ var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
272
240
 
273
241
  // src/configs/disable-dom.ts
274
242
  var disable_dom_exports = {};
@@ -277,7 +245,7 @@ __export(disable_dom_exports, {
277
245
  rules: () => rules6
278
246
  });
279
247
  var name7 = "@eslint-react/disable-dom";
280
- var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
248
+ var rules6 = Object.fromEntries(Object.entries(rules2).map(([key]) => [key, "off"]));
281
249
 
282
250
  // src/configs/disable-type-checked.ts
283
251
  var disable_type_checked_exports = {};
@@ -309,7 +277,7 @@ var plugins5 = {
309
277
 
310
278
  // src/configs/disable-web-api.ts
311
279
  var name9 = "@eslint-react/disable-web-api";
312
- var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
280
+ var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
313
281
 
314
282
  // src/configs/off.ts
315
283
  var off_exports = {};
@@ -319,7 +287,7 @@ __export(off_exports, {
319
287
  });
320
288
  var name10 = "@eslint-react/off";
321
289
  var rules10 = {
322
- ...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
290
+ ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
323
291
  ...rules7
324
292
  };
325
293
 
@@ -397,6 +365,28 @@ var settings7 = {
397
365
  ...settings6
398
366
  };
399
367
 
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
+
400
390
  // src/index.ts
401
391
  function makeLegacyConfig(config) {
402
392
  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-next.0";
17
+ var version = "1.24.1";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -224,40 +224,8 @@ __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
259
227
  var name6 = "@eslint-react/disable-debug";
260
- var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
228
+ var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
261
229
 
262
230
  // src/configs/disable-dom.ts
263
231
  var disable_dom_exports = {};
@@ -266,7 +234,7 @@ __export(disable_dom_exports, {
266
234
  rules: () => rules6
267
235
  });
268
236
  var name7 = "@eslint-react/disable-dom";
269
- var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
237
+ var rules6 = Object.fromEntries(Object.entries(rules2).map(([key]) => [key, "off"]));
270
238
 
271
239
  // src/configs/disable-type-checked.ts
272
240
  var disable_type_checked_exports = {};
@@ -298,7 +266,7 @@ var plugins5 = {
298
266
 
299
267
  // src/configs/disable-web-api.ts
300
268
  var name9 = "@eslint-react/disable-web-api";
301
- var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
269
+ var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
302
270
 
303
271
  // src/configs/off.ts
304
272
  var off_exports = {};
@@ -308,7 +276,7 @@ __export(off_exports, {
308
276
  });
309
277
  var name10 = "@eslint-react/off";
310
278
  var rules10 = {
311
- ...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
279
+ ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
312
280
  ...rules7
313
281
  };
314
282
 
@@ -386,6 +354,28 @@ var settings7 = {
386
354
  ...settings6
387
355
  };
388
356
 
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
+
389
379
  // src/index.ts
390
380
  function makeLegacyConfig(config) {
391
381
  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-next.0",
3
+ "version": "1.24.1",
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-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"
51
+ "@eslint-react/eff": "1.24.1",
52
+ "eslint-plugin-react-debug": "1.24.1",
53
+ "eslint-plugin-react-dom": "1.24.1",
54
+ "eslint-plugin-react-web-api": "1.24.1",
55
+ "eslint-plugin-react-hooks-extra": "1.24.1",
56
+ "eslint-plugin-react-naming-convention": "1.24.1",
57
+ "eslint-plugin-react-x": "1.24.1",
58
+ "@eslint-react/shared": "1.24.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "^8.3.5",