@eslint-react/eslint-plugin 1.24.0-beta.0 → 1.24.0-beta.16

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
@@ -231,12 +231,27 @@ declare const plugins$6: {
231
231
  };
232
232
  declare const settings$5: {
233
233
  "react-x": {
234
- readonly additionalHooks: {
235
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
236
- };
234
+ readonly importSource: "react";
235
+ readonly jsxPragma: "createElement";
236
+ readonly jsxPragmaFrag: "Fragment";
237
237
  readonly polymorphicPropName: "as";
238
+ readonly strict: false;
238
239
  readonly strictImportCheck: false;
239
240
  readonly version: "detect";
241
+ readonly additionalHooks: {
242
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
243
+ };
244
+ readonly additionalComponents?: {
245
+ name: string;
246
+ as?: string;
247
+ attributes?: {
248
+ name: string;
249
+ as?: string;
250
+ controlled?: boolean;
251
+ defaultValue?: string;
252
+ }[];
253
+ selector?: string;
254
+ }[];
240
255
  };
241
256
  };
242
257
 
@@ -351,12 +366,27 @@ declare const plugins$5: {
351
366
  };
352
367
  declare const settings$4: {
353
368
  "react-x": {
354
- readonly additionalHooks: {
355
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
356
- };
369
+ readonly importSource: "react";
370
+ readonly jsxPragma: "createElement";
371
+ readonly jsxPragmaFrag: "Fragment";
357
372
  readonly polymorphicPropName: "as";
373
+ readonly strict: false;
358
374
  readonly strictImportCheck: false;
359
375
  readonly version: "detect";
376
+ readonly additionalHooks: {
377
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
378
+ };
379
+ readonly additionalComponents?: {
380
+ name: string;
381
+ as?: string;
382
+ attributes?: {
383
+ name: string;
384
+ as?: string;
385
+ controlled?: boolean;
386
+ defaultValue?: string;
387
+ }[];
388
+ selector?: string;
389
+ }[];
360
390
  };
361
391
  };
362
392
 
@@ -483,12 +513,27 @@ declare const plugins$3: {
483
513
  };
484
514
  declare const settings$3: {
485
515
  "react-x": {
486
- readonly additionalHooks: {
487
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
488
- };
516
+ readonly importSource: "react";
517
+ readonly jsxPragma: "createElement";
518
+ readonly jsxPragmaFrag: "Fragment";
489
519
  readonly polymorphicPropName: "as";
520
+ readonly strict: false;
490
521
  readonly strictImportCheck: false;
491
522
  readonly version: "detect";
523
+ readonly additionalHooks: {
524
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
525
+ };
526
+ readonly additionalComponents?: {
527
+ name: string;
528
+ as?: string;
529
+ attributes?: {
530
+ name: string;
531
+ as?: string;
532
+ controlled?: boolean;
533
+ defaultValue?: string;
534
+ }[];
535
+ selector?: string;
536
+ }[];
492
537
  };
493
538
  };
494
539
 
@@ -792,12 +837,27 @@ declare const plugins$2: {
792
837
  };
793
838
  declare const settings$2: {
794
839
  "react-x": {
795
- readonly additionalHooks: {
796
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
797
- };
840
+ readonly importSource: "react";
841
+ readonly jsxPragma: "createElement";
842
+ readonly jsxPragmaFrag: "Fragment";
798
843
  readonly polymorphicPropName: "as";
844
+ readonly strict: false;
799
845
  readonly strictImportCheck: false;
800
846
  readonly version: "detect";
847
+ readonly additionalHooks: {
848
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
849
+ };
850
+ readonly additionalComponents?: {
851
+ name: string;
852
+ as?: string;
853
+ attributes?: {
854
+ name: string;
855
+ as?: string;
856
+ controlled?: boolean;
857
+ defaultValue?: string;
858
+ }[];
859
+ selector?: string;
860
+ }[];
801
861
  };
802
862
  };
803
863
 
@@ -1022,12 +1082,27 @@ declare const plugins$1: {
1022
1082
  };
1023
1083
  declare const settings$1: {
1024
1084
  "react-x": {
1025
- readonly additionalHooks: {
1026
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1027
- };
1085
+ readonly importSource: "react";
1086
+ readonly jsxPragma: "createElement";
1087
+ readonly jsxPragmaFrag: "Fragment";
1028
1088
  readonly polymorphicPropName: "as";
1089
+ readonly strict: false;
1029
1090
  readonly strictImportCheck: false;
1030
1091
  readonly version: "detect";
1092
+ readonly additionalHooks: {
1093
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1094
+ };
1095
+ readonly additionalComponents?: {
1096
+ name: string;
1097
+ as?: string;
1098
+ attributes?: {
1099
+ name: string;
1100
+ as?: string;
1101
+ controlled?: boolean;
1102
+ defaultValue?: string;
1103
+ }[];
1104
+ selector?: string;
1105
+ }[];
1031
1106
  };
1032
1107
  };
1033
1108
 
@@ -1251,12 +1326,27 @@ declare const plugins: {
1251
1326
  };
1252
1327
  declare const settings: {
1253
1328
  "react-x": {
1254
- readonly additionalHooks: {
1255
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1256
- };
1329
+ readonly importSource: "react";
1330
+ readonly jsxPragma: "createElement";
1331
+ readonly jsxPragmaFrag: "Fragment";
1257
1332
  readonly polymorphicPropName: "as";
1333
+ readonly strict: false;
1258
1334
  readonly strictImportCheck: false;
1259
1335
  readonly version: "detect";
1336
+ readonly additionalHooks: {
1337
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1338
+ };
1339
+ readonly additionalComponents?: {
1340
+ name: string;
1341
+ as?: string;
1342
+ attributes?: {
1343
+ name: string;
1344
+ as?: string;
1345
+ controlled?: boolean;
1346
+ defaultValue?: string;
1347
+ }[];
1348
+ selector?: string;
1349
+ }[];
1260
1350
  };
1261
1351
  };
1262
1352
 
package/dist/index.d.ts CHANGED
@@ -231,12 +231,27 @@ declare const plugins$6: {
231
231
  };
232
232
  declare const settings$5: {
233
233
  "react-x": {
234
- readonly additionalHooks: {
235
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
236
- };
234
+ readonly importSource: "react";
235
+ readonly jsxPragma: "createElement";
236
+ readonly jsxPragmaFrag: "Fragment";
237
237
  readonly polymorphicPropName: "as";
238
+ readonly strict: false;
238
239
  readonly strictImportCheck: false;
239
240
  readonly version: "detect";
241
+ readonly additionalHooks: {
242
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
243
+ };
244
+ readonly additionalComponents?: {
245
+ name: string;
246
+ as?: string;
247
+ attributes?: {
248
+ name: string;
249
+ as?: string;
250
+ controlled?: boolean;
251
+ defaultValue?: string;
252
+ }[];
253
+ selector?: string;
254
+ }[];
240
255
  };
241
256
  };
242
257
 
@@ -351,12 +366,27 @@ declare const plugins$5: {
351
366
  };
352
367
  declare const settings$4: {
353
368
  "react-x": {
354
- readonly additionalHooks: {
355
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
356
- };
369
+ readonly importSource: "react";
370
+ readonly jsxPragma: "createElement";
371
+ readonly jsxPragmaFrag: "Fragment";
357
372
  readonly polymorphicPropName: "as";
373
+ readonly strict: false;
358
374
  readonly strictImportCheck: false;
359
375
  readonly version: "detect";
376
+ readonly additionalHooks: {
377
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
378
+ };
379
+ readonly additionalComponents?: {
380
+ name: string;
381
+ as?: string;
382
+ attributes?: {
383
+ name: string;
384
+ as?: string;
385
+ controlled?: boolean;
386
+ defaultValue?: string;
387
+ }[];
388
+ selector?: string;
389
+ }[];
360
390
  };
361
391
  };
362
392
 
@@ -483,12 +513,27 @@ declare const plugins$3: {
483
513
  };
484
514
  declare const settings$3: {
485
515
  "react-x": {
486
- readonly additionalHooks: {
487
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
488
- };
516
+ readonly importSource: "react";
517
+ readonly jsxPragma: "createElement";
518
+ readonly jsxPragmaFrag: "Fragment";
489
519
  readonly polymorphicPropName: "as";
520
+ readonly strict: false;
490
521
  readonly strictImportCheck: false;
491
522
  readonly version: "detect";
523
+ readonly additionalHooks: {
524
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
525
+ };
526
+ readonly additionalComponents?: {
527
+ name: string;
528
+ as?: string;
529
+ attributes?: {
530
+ name: string;
531
+ as?: string;
532
+ controlled?: boolean;
533
+ defaultValue?: string;
534
+ }[];
535
+ selector?: string;
536
+ }[];
492
537
  };
493
538
  };
494
539
 
@@ -792,12 +837,27 @@ declare const plugins$2: {
792
837
  };
793
838
  declare const settings$2: {
794
839
  "react-x": {
795
- readonly additionalHooks: {
796
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
797
- };
840
+ readonly importSource: "react";
841
+ readonly jsxPragma: "createElement";
842
+ readonly jsxPragmaFrag: "Fragment";
798
843
  readonly polymorphicPropName: "as";
844
+ readonly strict: false;
799
845
  readonly strictImportCheck: false;
800
846
  readonly version: "detect";
847
+ readonly additionalHooks: {
848
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
849
+ };
850
+ readonly additionalComponents?: {
851
+ name: string;
852
+ as?: string;
853
+ attributes?: {
854
+ name: string;
855
+ as?: string;
856
+ controlled?: boolean;
857
+ defaultValue?: string;
858
+ }[];
859
+ selector?: string;
860
+ }[];
801
861
  };
802
862
  };
803
863
 
@@ -1022,12 +1082,27 @@ declare const plugins$1: {
1022
1082
  };
1023
1083
  declare const settings$1: {
1024
1084
  "react-x": {
1025
- readonly additionalHooks: {
1026
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1027
- };
1085
+ readonly importSource: "react";
1086
+ readonly jsxPragma: "createElement";
1087
+ readonly jsxPragmaFrag: "Fragment";
1028
1088
  readonly polymorphicPropName: "as";
1089
+ readonly strict: false;
1029
1090
  readonly strictImportCheck: false;
1030
1091
  readonly version: "detect";
1092
+ readonly additionalHooks: {
1093
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1094
+ };
1095
+ readonly additionalComponents?: {
1096
+ name: string;
1097
+ as?: string;
1098
+ attributes?: {
1099
+ name: string;
1100
+ as?: string;
1101
+ controlled?: boolean;
1102
+ defaultValue?: string;
1103
+ }[];
1104
+ selector?: string;
1105
+ }[];
1031
1106
  };
1032
1107
  };
1033
1108
 
@@ -1251,12 +1326,27 @@ declare const plugins: {
1251
1326
  };
1252
1327
  declare const settings: {
1253
1328
  "react-x": {
1254
- readonly additionalHooks: {
1255
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1256
- };
1329
+ readonly importSource: "react";
1330
+ readonly jsxPragma: "createElement";
1331
+ readonly jsxPragmaFrag: "Fragment";
1257
1332
  readonly polymorphicPropName: "as";
1333
+ readonly strict: false;
1258
1334
  readonly strictImportCheck: false;
1259
1335
  readonly version: "detect";
1336
+ readonly additionalHooks: {
1337
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1338
+ };
1339
+ readonly additionalComponents?: {
1340
+ name: string;
1341
+ as?: string;
1342
+ attributes?: {
1343
+ name: string;
1344
+ as?: string;
1345
+ controlled?: boolean;
1346
+ defaultValue?: string;
1347
+ }[];
1348
+ selector?: string;
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-beta.0";
28
+ var version = "1.24.0-beta.16";
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-beta.0";
17
+ var version = "1.24.0-beta.16";
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-beta.0",
3
+ "version": "1.24.0-beta.16",
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/eff": "1.24.0-beta.0",
52
- "@eslint-react/shared": "1.24.0-beta.0",
53
- "@eslint-react/types": "1.24.0-beta.0",
54
- "eslint-plugin-react-debug": "1.24.0-beta.0",
55
- "eslint-plugin-react-dom": "1.24.0-beta.0",
56
- "eslint-plugin-react-web-api": "1.24.0-beta.0",
57
- "eslint-plugin-react-hooks-extra": "1.24.0-beta.0",
58
- "eslint-plugin-react-naming-convention": "1.24.0-beta.0",
59
- "eslint-plugin-react-x": "1.24.0-beta.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-beta.16",
52
+ "eslint-plugin-react-dom": "1.24.0-beta.16",
53
+ "eslint-plugin-react-debug": "1.24.0-beta.16",
54
+ "eslint-plugin-react-hooks-extra": "1.24.0-beta.16",
55
+ "eslint-plugin-react-naming-convention": "1.24.0-beta.16",
56
+ "eslint-plugin-react-web-api": "1.24.0-beta.16",
57
+ "eslint-plugin-react-x": "1.24.0-beta.16",
58
+ "@eslint-react/shared": "1.24.0-beta.16"
60
59
  },
61
60
  "devDependencies": {
62
61
  "tsup": "^8.3.5",