@eslint-react/eslint-plugin 1.24.0-next.0 → 1.24.0-next.11

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
@@ -234,9 +234,24 @@ declare const settings$5: {
234
234
  readonly additionalHooks: {
235
235
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
236
236
  };
237
- readonly polymorphicPropName: "as";
238
- readonly strictImportCheck: false;
239
- readonly version: "detect";
237
+ readonly version: string;
238
+ readonly importSource: string;
239
+ readonly jsxPragma: string;
240
+ readonly jsxPragmaFrag: string;
241
+ readonly polymorphicPropName: string;
242
+ readonly strict: boolean;
243
+ readonly strictImportCheck: boolean;
244
+ readonly additionalComponents?: {
245
+ name: string;
246
+ as?: string;
247
+ selector?: string;
248
+ attributes?: {
249
+ name: string;
250
+ as?: string;
251
+ controlled?: boolean;
252
+ defaultValue?: string;
253
+ }[];
254
+ }[];
240
255
  };
241
256
  };
242
257
 
@@ -354,9 +369,24 @@ declare const settings$4: {
354
369
  readonly additionalHooks: {
355
370
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
356
371
  };
357
- readonly polymorphicPropName: "as";
358
- readonly strictImportCheck: false;
359
- readonly version: "detect";
372
+ readonly version: string;
373
+ readonly importSource: string;
374
+ readonly jsxPragma: string;
375
+ readonly jsxPragmaFrag: string;
376
+ readonly polymorphicPropName: string;
377
+ readonly strict: boolean;
378
+ readonly strictImportCheck: boolean;
379
+ readonly additionalComponents?: {
380
+ name: string;
381
+ as?: string;
382
+ selector?: string;
383
+ attributes?: {
384
+ name: string;
385
+ as?: string;
386
+ controlled?: boolean;
387
+ defaultValue?: string;
388
+ }[];
389
+ }[];
360
390
  };
361
391
  };
362
392
 
@@ -486,9 +516,24 @@ declare const settings$3: {
486
516
  readonly additionalHooks: {
487
517
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
488
518
  };
489
- readonly polymorphicPropName: "as";
490
- readonly strictImportCheck: false;
491
- readonly version: "detect";
519
+ readonly version: string;
520
+ readonly importSource: string;
521
+ readonly jsxPragma: string;
522
+ readonly jsxPragmaFrag: string;
523
+ readonly polymorphicPropName: string;
524
+ readonly strict: boolean;
525
+ readonly strictImportCheck: boolean;
526
+ readonly additionalComponents?: {
527
+ name: string;
528
+ as?: string;
529
+ selector?: string;
530
+ attributes?: {
531
+ name: string;
532
+ as?: string;
533
+ controlled?: boolean;
534
+ defaultValue?: string;
535
+ }[];
536
+ }[];
492
537
  };
493
538
  };
494
539
 
@@ -795,9 +840,24 @@ declare const settings$2: {
795
840
  readonly additionalHooks: {
796
841
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
797
842
  };
798
- readonly polymorphicPropName: "as";
799
- readonly strictImportCheck: false;
800
- readonly version: "detect";
843
+ readonly version: string;
844
+ readonly importSource: string;
845
+ readonly jsxPragma: string;
846
+ readonly jsxPragmaFrag: string;
847
+ readonly polymorphicPropName: string;
848
+ readonly strict: boolean;
849
+ readonly strictImportCheck: boolean;
850
+ readonly additionalComponents?: {
851
+ name: string;
852
+ as?: string;
853
+ selector?: string;
854
+ attributes?: {
855
+ name: string;
856
+ as?: string;
857
+ controlled?: boolean;
858
+ defaultValue?: string;
859
+ }[];
860
+ }[];
801
861
  };
802
862
  };
803
863
 
@@ -1025,9 +1085,24 @@ declare const settings$1: {
1025
1085
  readonly additionalHooks: {
1026
1086
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1027
1087
  };
1028
- readonly polymorphicPropName: "as";
1029
- readonly strictImportCheck: false;
1030
- readonly version: "detect";
1088
+ readonly version: string;
1089
+ readonly importSource: string;
1090
+ readonly jsxPragma: string;
1091
+ readonly jsxPragmaFrag: string;
1092
+ readonly polymorphicPropName: string;
1093
+ readonly strict: boolean;
1094
+ readonly strictImportCheck: boolean;
1095
+ readonly additionalComponents?: {
1096
+ name: string;
1097
+ as?: string;
1098
+ selector?: string;
1099
+ attributes?: {
1100
+ name: string;
1101
+ as?: string;
1102
+ controlled?: boolean;
1103
+ defaultValue?: string;
1104
+ }[];
1105
+ }[];
1031
1106
  };
1032
1107
  };
1033
1108
 
@@ -1254,9 +1329,24 @@ declare const settings: {
1254
1329
  readonly additionalHooks: {
1255
1330
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1256
1331
  };
1257
- readonly polymorphicPropName: "as";
1258
- readonly strictImportCheck: false;
1259
- readonly version: "detect";
1332
+ readonly version: string;
1333
+ readonly importSource: string;
1334
+ readonly jsxPragma: string;
1335
+ readonly jsxPragmaFrag: string;
1336
+ readonly polymorphicPropName: string;
1337
+ readonly strict: boolean;
1338
+ readonly strictImportCheck: boolean;
1339
+ readonly additionalComponents?: {
1340
+ name: string;
1341
+ as?: string;
1342
+ selector?: string;
1343
+ attributes?: {
1344
+ name: string;
1345
+ as?: string;
1346
+ controlled?: boolean;
1347
+ defaultValue?: string;
1348
+ }[];
1349
+ }[];
1260
1350
  };
1261
1351
  };
1262
1352
 
package/dist/index.d.ts CHANGED
@@ -234,9 +234,24 @@ declare const settings$5: {
234
234
  readonly additionalHooks: {
235
235
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
236
236
  };
237
- readonly polymorphicPropName: "as";
238
- readonly strictImportCheck: false;
239
- readonly version: "detect";
237
+ readonly version: string;
238
+ readonly importSource: string;
239
+ readonly jsxPragma: string;
240
+ readonly jsxPragmaFrag: string;
241
+ readonly polymorphicPropName: string;
242
+ readonly strict: boolean;
243
+ readonly strictImportCheck: boolean;
244
+ readonly additionalComponents?: {
245
+ name: string;
246
+ as?: string;
247
+ selector?: string;
248
+ attributes?: {
249
+ name: string;
250
+ as?: string;
251
+ controlled?: boolean;
252
+ defaultValue?: string;
253
+ }[];
254
+ }[];
240
255
  };
241
256
  };
242
257
 
@@ -354,9 +369,24 @@ declare const settings$4: {
354
369
  readonly additionalHooks: {
355
370
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
356
371
  };
357
- readonly polymorphicPropName: "as";
358
- readonly strictImportCheck: false;
359
- readonly version: "detect";
372
+ readonly version: string;
373
+ readonly importSource: string;
374
+ readonly jsxPragma: string;
375
+ readonly jsxPragmaFrag: string;
376
+ readonly polymorphicPropName: string;
377
+ readonly strict: boolean;
378
+ readonly strictImportCheck: boolean;
379
+ readonly additionalComponents?: {
380
+ name: string;
381
+ as?: string;
382
+ selector?: string;
383
+ attributes?: {
384
+ name: string;
385
+ as?: string;
386
+ controlled?: boolean;
387
+ defaultValue?: string;
388
+ }[];
389
+ }[];
360
390
  };
361
391
  };
362
392
 
@@ -486,9 +516,24 @@ declare const settings$3: {
486
516
  readonly additionalHooks: {
487
517
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
488
518
  };
489
- readonly polymorphicPropName: "as";
490
- readonly strictImportCheck: false;
491
- readonly version: "detect";
519
+ readonly version: string;
520
+ readonly importSource: string;
521
+ readonly jsxPragma: string;
522
+ readonly jsxPragmaFrag: string;
523
+ readonly polymorphicPropName: string;
524
+ readonly strict: boolean;
525
+ readonly strictImportCheck: boolean;
526
+ readonly additionalComponents?: {
527
+ name: string;
528
+ as?: string;
529
+ selector?: string;
530
+ attributes?: {
531
+ name: string;
532
+ as?: string;
533
+ controlled?: boolean;
534
+ defaultValue?: string;
535
+ }[];
536
+ }[];
492
537
  };
493
538
  };
494
539
 
@@ -795,9 +840,24 @@ declare const settings$2: {
795
840
  readonly additionalHooks: {
796
841
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
797
842
  };
798
- readonly polymorphicPropName: "as";
799
- readonly strictImportCheck: false;
800
- readonly version: "detect";
843
+ readonly version: string;
844
+ readonly importSource: string;
845
+ readonly jsxPragma: string;
846
+ readonly jsxPragmaFrag: string;
847
+ readonly polymorphicPropName: string;
848
+ readonly strict: boolean;
849
+ readonly strictImportCheck: boolean;
850
+ readonly additionalComponents?: {
851
+ name: string;
852
+ as?: string;
853
+ selector?: string;
854
+ attributes?: {
855
+ name: string;
856
+ as?: string;
857
+ controlled?: boolean;
858
+ defaultValue?: string;
859
+ }[];
860
+ }[];
801
861
  };
802
862
  };
803
863
 
@@ -1025,9 +1085,24 @@ declare const settings$1: {
1025
1085
  readonly additionalHooks: {
1026
1086
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1027
1087
  };
1028
- readonly polymorphicPropName: "as";
1029
- readonly strictImportCheck: false;
1030
- readonly version: "detect";
1088
+ readonly version: string;
1089
+ readonly importSource: string;
1090
+ readonly jsxPragma: string;
1091
+ readonly jsxPragmaFrag: string;
1092
+ readonly polymorphicPropName: string;
1093
+ readonly strict: boolean;
1094
+ readonly strictImportCheck: boolean;
1095
+ readonly additionalComponents?: {
1096
+ name: string;
1097
+ as?: string;
1098
+ selector?: string;
1099
+ attributes?: {
1100
+ name: string;
1101
+ as?: string;
1102
+ controlled?: boolean;
1103
+ defaultValue?: string;
1104
+ }[];
1105
+ }[];
1031
1106
  };
1032
1107
  };
1033
1108
 
@@ -1254,9 +1329,24 @@ declare const settings: {
1254
1329
  readonly additionalHooks: {
1255
1330
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1256
1331
  };
1257
- readonly polymorphicPropName: "as";
1258
- readonly strictImportCheck: false;
1259
- readonly version: "detect";
1332
+ readonly version: string;
1333
+ readonly importSource: string;
1334
+ readonly jsxPragma: string;
1335
+ readonly jsxPragmaFrag: string;
1336
+ readonly polymorphicPropName: string;
1337
+ readonly strict: boolean;
1338
+ readonly strictImportCheck: boolean;
1339
+ readonly additionalComponents?: {
1340
+ name: string;
1341
+ as?: string;
1342
+ selector?: string;
1343
+ attributes?: {
1344
+ name: string;
1345
+ as?: string;
1346
+ controlled?: boolean;
1347
+ defaultValue?: string;
1348
+ }[];
1349
+ }[];
1260
1350
  };
1261
1351
  };
1262
1352
 
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ var reactNamingConvention = require('eslint-plugin-react-naming-convention');
7
7
  var reactWebApi = require('eslint-plugin-react-web-api');
8
8
  var react = require('eslint-plugin-react-x');
9
9
  var shared = require('@eslint-react/shared');
10
- var eff = require('@eslint-react/eff');
11
10
 
12
11
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
12
 
@@ -26,7 +25,7 @@ var __export = (target, all) => {
26
25
 
27
26
  // package.json
28
27
  var name = "@eslint-react/eslint-plugin";
29
- var version = "1.24.0-next.0";
28
+ var version = "1.24.0-next.11";
30
29
 
31
30
  // src/configs/all.ts
32
31
  var all_exports = {};
@@ -236,8 +235,40 @@ __export(disable_debug_exports, {
236
235
  name: () => name6,
237
236
  rules: () => rules5
238
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
239
270
  var name6 = "@eslint-react/disable-debug";
240
- var rules5 = eff.fromEntries(eff.entries(rules4).map(([key]) => [key, "off"]));
271
+ var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
241
272
 
242
273
  // src/configs/disable-dom.ts
243
274
  var disable_dom_exports = {};
@@ -246,7 +277,7 @@ __export(disable_dom_exports, {
246
277
  rules: () => rules6
247
278
  });
248
279
  var name7 = "@eslint-react/disable-dom";
249
- var rules6 = eff.fromEntries(eff.entries(rules2).map(([key]) => [key, "off"]));
280
+ var rules6 = fromEntries(entries(rules2).map(([key]) => [key, "off"]));
250
281
 
251
282
  // src/configs/disable-type-checked.ts
252
283
  var disable_type_checked_exports = {};
@@ -278,7 +309,7 @@ var plugins5 = {
278
309
 
279
310
  // src/configs/disable-web-api.ts
280
311
  var name9 = "@eslint-react/disable-web-api";
281
- var rules9 = eff.fromEntries(eff.entries(rules8).map(([key]) => [key, "off"]));
312
+ var rules9 = fromEntries(entries(rules8).map(([key]) => [key, "off"]));
282
313
 
283
314
  // src/configs/off.ts
284
315
  var off_exports = {};
@@ -288,7 +319,7 @@ __export(off_exports, {
288
319
  });
289
320
  var name10 = "@eslint-react/off";
290
321
  var rules10 = {
291
- ...eff.fromEntries(eff.entries(rules3).map(([key]) => [key, "off"])),
322
+ ...fromEntries(entries(rules3).map(([key]) => [key, "off"])),
292
323
  ...rules7
293
324
  };
294
325
 
@@ -366,28 +397,6 @@ var settings7 = {
366
397
  ...settings6
367
398
  };
368
399
 
369
- // src/utils/type-of.ts
370
- function typeOf(t) {
371
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
372
- }
373
-
374
- // src/utils/transform-keys.ts
375
- function transformKeys(obj, transform) {
376
- if (typeOf(obj) !== "object") {
377
- return obj;
378
- }
379
- const res = {};
380
- for (const key in obj) {
381
- res[transform(key)] = obj[key];
382
- }
383
- return res;
384
- }
385
-
386
- // src/utils/pad-keys-left.ts
387
- function padKeysLeft(obj, left) {
388
- return transformKeys(obj, (key) => `${left}${key}`);
389
- }
390
-
391
400
  // src/index.ts
392
401
  function makeLegacyConfig(config) {
393
402
  const { name: drop, ...rest } = config;
package/dist/index.mjs CHANGED
@@ -5,7 +5,6 @@ import reactNamingConvention from 'eslint-plugin-react-naming-convention';
5
5
  import reactWebApi from 'eslint-plugin-react-web-api';
6
6
  import react from 'eslint-plugin-react-x';
7
7
  import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
8
- import { fromEntries, entries } from '@eslint-react/eff';
9
8
 
10
9
  var __defProp = Object.defineProperty;
11
10
  var __export = (target, all) => {
@@ -15,7 +14,7 @@ var __export = (target, all) => {
15
14
 
16
15
  // package.json
17
16
  var name = "@eslint-react/eslint-plugin";
18
- var version = "1.24.0-next.0";
17
+ var version = "1.24.0-next.11";
19
18
 
20
19
  // src/configs/all.ts
21
20
  var all_exports = {};
@@ -225,6 +224,38 @@ __export(disable_debug_exports, {
225
224
  name: () => name6,
226
225
  rules: () => rules5
227
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
228
259
  var name6 = "@eslint-react/disable-debug";
229
260
  var rules5 = fromEntries(entries(rules4).map(([key]) => [key, "off"]));
230
261
 
@@ -355,28 +386,6 @@ var settings7 = {
355
386
  ...settings6
356
387
  };
357
388
 
358
- // src/utils/type-of.ts
359
- function typeOf(t) {
360
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
361
- }
362
-
363
- // src/utils/transform-keys.ts
364
- function transformKeys(obj, transform) {
365
- if (typeOf(obj) !== "object") {
366
- return obj;
367
- }
368
- const res = {};
369
- for (const key in obj) {
370
- res[transform(key)] = obj[key];
371
- }
372
- return res;
373
- }
374
-
375
- // src/utils/pad-keys-left.ts
376
- function padKeysLeft(obj, left) {
377
- return transformKeys(obj, (key) => `${left}${key}`);
378
- }
379
-
380
389
  // src/index.ts
381
390
  function makeLegacyConfig(config) {
382
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.0-next.0",
3
+ "version": "1.24.0-next.11",
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",
@@ -44,19 +44,18 @@
44
44
  "./package.json"
45
45
  ],
46
46
  "dependencies": {
47
- "@typescript-eslint/scope-manager": "^8.19.1",
48
- "@typescript-eslint/type-utils": "^8.19.1",
49
- "@typescript-eslint/types": "^8.19.1",
50
- "@typescript-eslint/utils": "^8.19.1",
51
- "@eslint-react/shared": "1.24.0-next.0",
52
- "@eslint-react/eff": "1.24.0-next.0",
53
- "@eslint-react/types": "1.24.0-next.0",
54
- "eslint-plugin-react-debug": "1.24.0-next.0",
55
- "eslint-plugin-react-dom": "1.24.0-next.0",
56
- "eslint-plugin-react-hooks-extra": "1.24.0-next.0",
57
- "eslint-plugin-react-web-api": "1.24.0-next.0",
58
- "eslint-plugin-react-naming-convention": "1.24.0-next.0",
59
- "eslint-plugin-react-x": "1.24.0-next.0"
47
+ "@typescript-eslint/scope-manager": "^8.20.0",
48
+ "@typescript-eslint/type-utils": "^8.20.0",
49
+ "@typescript-eslint/types": "^8.20.0",
50
+ "@typescript-eslint/utils": "^8.20.0",
51
+ "@eslint-react/eff": "1.24.0-next.11",
52
+ "@eslint-react/shared": "1.24.0-next.11",
53
+ "eslint-plugin-react-debug": "1.24.0-next.11",
54
+ "eslint-plugin-react-dom": "1.24.0-next.11",
55
+ "eslint-plugin-react-naming-convention": "1.24.0-next.11",
56
+ "eslint-plugin-react-web-api": "1.24.0-next.11",
57
+ "eslint-plugin-react-x": "1.24.0-next.11",
58
+ "eslint-plugin-react-hooks-extra": "1.24.0-next.11"
60
59
  },
61
60
  "devDependencies": {
62
61
  "tsup": "^8.3.5",