@eslint-react/shared 1.24.0-next.12 → 1.24.0-next.13
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 +132 -134
- package/dist/index.d.ts +132 -134
- package/dist/index.js +32 -20
- package/dist/index.mjs +32 -21
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,8 @@ declare const REACT_BUILD_IN_HOOKS: readonly ["use", "useActionState", "useCallb
|
|
|
52
52
|
*/
|
|
53
53
|
declare const createRuleForPlugin: (pluginName: string) => <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>;
|
|
54
54
|
|
|
55
|
+
declare const getId: () => string;
|
|
56
|
+
|
|
55
57
|
declare function getReactVersion(fallback?: string): string;
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -1335,9 +1337,6 @@ interface ReadonlyAction<TInput> extends BaseTransformation<TInput, Readonly<TIn
|
|
|
1335
1337
|
*/
|
|
1336
1338
|
declare function readonly<TInput>(): ReadonlyAction<TInput>;
|
|
1337
1339
|
|
|
1338
|
-
/**
|
|
1339
|
-
* @internal
|
|
1340
|
-
*/
|
|
1341
1340
|
declare const CustomComponentPropSchema: ObjectSchema<{
|
|
1342
1341
|
/**
|
|
1343
1342
|
* The name of the prop in the user-defined component.
|
|
@@ -1365,7 +1364,6 @@ declare const CustomComponentPropSchema: ObjectSchema<{
|
|
|
1365
1364
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1366
1365
|
}, undefined>;
|
|
1367
1366
|
/**
|
|
1368
|
-
* @internal
|
|
1369
1367
|
* @description
|
|
1370
1368
|
* This will provide some key information to the rule before checking for user-defined components.
|
|
1371
1369
|
* For example:
|
|
@@ -1378,13 +1376,6 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1378
1376
|
* "Link"
|
|
1379
1377
|
*/
|
|
1380
1378
|
readonly name: StringSchema<undefined>;
|
|
1381
|
-
/**
|
|
1382
|
-
* The ESQuery selector to select the component precisely.
|
|
1383
|
-
* @internal
|
|
1384
|
-
* @example
|
|
1385
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1386
|
-
*/
|
|
1387
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1388
1379
|
/**
|
|
1389
1380
|
* The name of the built-in component that the user-defined component represents.
|
|
1390
1381
|
* @example
|
|
@@ -1422,6 +1413,13 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1422
1413
|
*/
|
|
1423
1414
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1424
1415
|
}, undefined>, undefined>, undefined>;
|
|
1416
|
+
/**
|
|
1417
|
+
* The ESQuery selector to select the component precisely.
|
|
1418
|
+
* @internal
|
|
1419
|
+
* @example
|
|
1420
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1421
|
+
*/
|
|
1422
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1425
1423
|
}, undefined>;
|
|
1426
1424
|
declare const CustomHooksSchema: ObjectSchema<{
|
|
1427
1425
|
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -1454,26 +1452,26 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1454
1452
|
* @default `"react"`
|
|
1455
1453
|
* @example `"@pika/react"`
|
|
1456
1454
|
*/
|
|
1457
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1455
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1458
1456
|
/**
|
|
1459
1457
|
* The identifier that’s used for JSX Element creation.
|
|
1460
1458
|
* @default `"createElement"`
|
|
1461
1459
|
* @deprecated
|
|
1462
1460
|
*/
|
|
1463
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1461
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1464
1462
|
/**
|
|
1465
1463
|
* The identifier that’s used for JSX fragment elements.
|
|
1466
1464
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1467
1465
|
* @default `"Fragment"`
|
|
1468
1466
|
* @deprecated
|
|
1469
1467
|
*/
|
|
1470
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1468
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1471
1469
|
/**
|
|
1472
1470
|
* The name of the prop that is used for polymorphic components.
|
|
1473
1471
|
* @description This is used to determine the type of the component.
|
|
1474
1472
|
* @example `"as"`
|
|
1475
1473
|
*/
|
|
1476
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1474
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1477
1475
|
/**
|
|
1478
1476
|
* @internal
|
|
1479
1477
|
*/
|
|
@@ -1488,7 +1486,33 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1488
1486
|
* @example `"18.3.1"`
|
|
1489
1487
|
* @default `"detect"`
|
|
1490
1488
|
*/
|
|
1491
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1489
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1490
|
+
/**
|
|
1491
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1492
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1493
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1494
|
+
*/
|
|
1495
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1496
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1497
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1498
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1499
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1500
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1501
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1502
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1503
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1504
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1505
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1506
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1507
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1508
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1509
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1510
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1511
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1512
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1513
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1514
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1515
|
+
}, undefined>, undefined>;
|
|
1492
1516
|
/**
|
|
1493
1517
|
* An array of user-defined components
|
|
1494
1518
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1501,13 +1525,6 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1501
1525
|
* "Link"
|
|
1502
1526
|
*/
|
|
1503
1527
|
readonly name: StringSchema<undefined>;
|
|
1504
|
-
/**
|
|
1505
|
-
* The ESQuery selector to select the component precisely.
|
|
1506
|
-
* @internal
|
|
1507
|
-
* @example
|
|
1508
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1509
|
-
*/
|
|
1510
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1511
1528
|
/**
|
|
1512
1529
|
* The name of the built-in component that the user-defined component represents.
|
|
1513
1530
|
* @example
|
|
@@ -1545,33 +1562,14 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1545
1562
|
*/
|
|
1546
1563
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1547
1564
|
}, undefined>, undefined>, undefined>;
|
|
1565
|
+
/**
|
|
1566
|
+
* The ESQuery selector to select the component precisely.
|
|
1567
|
+
* @internal
|
|
1568
|
+
* @example
|
|
1569
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1570
|
+
*/
|
|
1571
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1548
1572
|
}, undefined>, undefined>, undefined>;
|
|
1549
|
-
/**
|
|
1550
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1551
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1552
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1553
|
-
*/
|
|
1554
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1555
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1556
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1557
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1558
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1559
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1560
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1561
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1562
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1563
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1564
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1565
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1566
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1567
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1568
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1569
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1570
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1571
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1572
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1573
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1574
|
-
}, undefined>, undefined>;
|
|
1575
1573
|
}, undefined>;
|
|
1576
1574
|
/**
|
|
1577
1575
|
* @internal
|
|
@@ -1584,26 +1582,26 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1584
1582
|
* @default `"react"`
|
|
1585
1583
|
* @example `"@pika/react"`
|
|
1586
1584
|
*/
|
|
1587
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1585
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1588
1586
|
/**
|
|
1589
1587
|
* The identifier that’s used for JSX Element creation.
|
|
1590
1588
|
* @default `"createElement"`
|
|
1591
1589
|
* @deprecated
|
|
1592
1590
|
*/
|
|
1593
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1591
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1594
1592
|
/**
|
|
1595
1593
|
* The identifier that’s used for JSX fragment elements.
|
|
1596
1594
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1597
1595
|
* @default `"Fragment"`
|
|
1598
1596
|
* @deprecated
|
|
1599
1597
|
*/
|
|
1600
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1598
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1601
1599
|
/**
|
|
1602
1600
|
* The name of the prop that is used for polymorphic components.
|
|
1603
1601
|
* @description This is used to determine the type of the component.
|
|
1604
1602
|
* @example `"as"`
|
|
1605
1603
|
*/
|
|
1606
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1604
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1607
1605
|
/**
|
|
1608
1606
|
* @internal
|
|
1609
1607
|
*/
|
|
@@ -1618,7 +1616,33 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1618
1616
|
* @example `"18.3.1"`
|
|
1619
1617
|
* @default `"detect"`
|
|
1620
1618
|
*/
|
|
1621
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1619
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1620
|
+
/**
|
|
1621
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1622
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1623
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1624
|
+
*/
|
|
1625
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1626
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1627
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1628
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1629
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1630
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1631
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1632
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1633
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1634
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1635
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1636
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1637
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1638
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1639
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1640
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1641
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1642
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1643
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1644
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1645
|
+
}, undefined>, undefined>;
|
|
1622
1646
|
/**
|
|
1623
1647
|
* An array of user-defined components
|
|
1624
1648
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1631,13 +1655,6 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1631
1655
|
* "Link"
|
|
1632
1656
|
*/
|
|
1633
1657
|
readonly name: StringSchema<undefined>;
|
|
1634
|
-
/**
|
|
1635
|
-
* The ESQuery selector to select the component precisely.
|
|
1636
|
-
* @internal
|
|
1637
|
-
* @example
|
|
1638
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1639
|
-
*/
|
|
1640
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1641
1658
|
/**
|
|
1642
1659
|
* The name of the built-in component that the user-defined component represents.
|
|
1643
1660
|
* @example
|
|
@@ -1675,33 +1692,14 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1675
1692
|
*/
|
|
1676
1693
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1677
1694
|
}, undefined>, undefined>, undefined>;
|
|
1695
|
+
/**
|
|
1696
|
+
* The ESQuery selector to select the component precisely.
|
|
1697
|
+
* @internal
|
|
1698
|
+
* @example
|
|
1699
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1700
|
+
*/
|
|
1701
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1678
1702
|
}, undefined>, undefined>, undefined>;
|
|
1679
|
-
/**
|
|
1680
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1681
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1682
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1683
|
-
*/
|
|
1684
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1685
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1686
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1687
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1688
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1689
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1690
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1691
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1692
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1693
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1694
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1695
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1696
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1697
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1698
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1699
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1700
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1701
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1702
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1703
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1704
|
-
}, undefined>, undefined>;
|
|
1705
1703
|
}, undefined>, undefined>;
|
|
1706
1704
|
/** @deprecated Use `react-x` instead */
|
|
1707
1705
|
readonly reactOptions: OptionalSchema<ObjectSchema<{
|
|
@@ -1711,26 +1709,26 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1711
1709
|
* @default `"react"`
|
|
1712
1710
|
* @example `"@pika/react"`
|
|
1713
1711
|
*/
|
|
1714
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1712
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1715
1713
|
/**
|
|
1716
1714
|
* The identifier that’s used for JSX Element creation.
|
|
1717
1715
|
* @default `"createElement"`
|
|
1718
1716
|
* @deprecated
|
|
1719
1717
|
*/
|
|
1720
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1718
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1721
1719
|
/**
|
|
1722
1720
|
* The identifier that’s used for JSX fragment elements.
|
|
1723
1721
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1724
1722
|
* @default `"Fragment"`
|
|
1725
1723
|
* @deprecated
|
|
1726
1724
|
*/
|
|
1727
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1725
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1728
1726
|
/**
|
|
1729
1727
|
* The name of the prop that is used for polymorphic components.
|
|
1730
1728
|
* @description This is used to determine the type of the component.
|
|
1731
1729
|
* @example `"as"`
|
|
1732
1730
|
*/
|
|
1733
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1731
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1734
1732
|
/**
|
|
1735
1733
|
* @internal
|
|
1736
1734
|
*/
|
|
@@ -1745,7 +1743,33 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1745
1743
|
* @example `"18.3.1"`
|
|
1746
1744
|
* @default `"detect"`
|
|
1747
1745
|
*/
|
|
1748
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1746
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1747
|
+
/**
|
|
1748
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1749
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1750
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1751
|
+
*/
|
|
1752
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1753
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1754
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1755
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1756
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1757
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1758
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1759
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1760
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1761
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1762
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1763
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1764
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1765
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1766
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1767
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1768
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1769
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1770
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1771
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1772
|
+
}, undefined>, undefined>;
|
|
1749
1773
|
/**
|
|
1750
1774
|
* An array of user-defined components
|
|
1751
1775
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1758,13 +1782,6 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1758
1782
|
* "Link"
|
|
1759
1783
|
*/
|
|
1760
1784
|
readonly name: StringSchema<undefined>;
|
|
1761
|
-
/**
|
|
1762
|
-
* The ESQuery selector to select the component precisely.
|
|
1763
|
-
* @internal
|
|
1764
|
-
* @example
|
|
1765
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1766
|
-
*/
|
|
1767
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1768
1785
|
/**
|
|
1769
1786
|
* The name of the built-in component that the user-defined component represents.
|
|
1770
1787
|
* @example
|
|
@@ -1802,33 +1819,14 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1802
1819
|
*/
|
|
1803
1820
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1804
1821
|
}, undefined>, undefined>, undefined>;
|
|
1822
|
+
/**
|
|
1823
|
+
* The ESQuery selector to select the component precisely.
|
|
1824
|
+
* @internal
|
|
1825
|
+
* @example
|
|
1826
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1827
|
+
*/
|
|
1828
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1805
1829
|
}, undefined>, undefined>, undefined>;
|
|
1806
|
-
/**
|
|
1807
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1808
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1809
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1810
|
-
*/
|
|
1811
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1812
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1813
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1814
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1815
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1816
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1817
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1818
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1819
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1820
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1821
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1822
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1823
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1824
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1825
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1826
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1827
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1828
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1829
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1830
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1831
|
-
}, undefined>, undefined>;
|
|
1832
1830
|
}, undefined>, undefined>;
|
|
1833
1831
|
}, undefined>, {}>;
|
|
1834
1832
|
type CustomComponent = InferOutput<typeof CustomComponentSchema>;
|
|
@@ -1840,26 +1838,26 @@ type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
|
1840
1838
|
* The default ESLint settings for "react-x".
|
|
1841
1839
|
*/
|
|
1842
1840
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: {
|
|
1841
|
+
readonly importSource: "react";
|
|
1842
|
+
readonly jsxPragma: "createElement";
|
|
1843
|
+
readonly jsxPragmaFrag: "Fragment";
|
|
1844
|
+
readonly polymorphicPropName: "as";
|
|
1845
|
+
readonly strict: false;
|
|
1846
|
+
readonly strictImportCheck: false;
|
|
1847
|
+
readonly version: "detect";
|
|
1843
1848
|
readonly additionalHooks: {
|
|
1844
1849
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1845
1850
|
};
|
|
1846
|
-
readonly version: string;
|
|
1847
|
-
readonly importSource: string;
|
|
1848
|
-
readonly jsxPragma: string;
|
|
1849
|
-
readonly jsxPragmaFrag: string;
|
|
1850
|
-
readonly polymorphicPropName: string;
|
|
1851
|
-
readonly strict: boolean;
|
|
1852
|
-
readonly strictImportCheck: boolean;
|
|
1853
1851
|
readonly additionalComponents?: {
|
|
1854
1852
|
name: string;
|
|
1855
1853
|
as?: string;
|
|
1856
|
-
selector?: string;
|
|
1857
1854
|
attributes?: {
|
|
1858
1855
|
name: string;
|
|
1859
1856
|
as?: string;
|
|
1860
1857
|
controlled?: boolean;
|
|
1861
1858
|
defaultValue?: string;
|
|
1862
1859
|
}[];
|
|
1860
|
+
selector?: string;
|
|
1863
1861
|
}[];
|
|
1864
1862
|
};
|
|
1865
1863
|
|
|
@@ -2231,4 +2229,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2231
2229
|
*/
|
|
2232
2230
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2233
2231
|
|
|
2234
|
-
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
|
2232
|
+
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getId, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ declare const REACT_BUILD_IN_HOOKS: readonly ["use", "useActionState", "useCallb
|
|
|
52
52
|
*/
|
|
53
53
|
declare const createRuleForPlugin: (pluginName: string) => <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>;
|
|
54
54
|
|
|
55
|
+
declare const getId: () => string;
|
|
56
|
+
|
|
55
57
|
declare function getReactVersion(fallback?: string): string;
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -1335,9 +1337,6 @@ interface ReadonlyAction<TInput> extends BaseTransformation<TInput, Readonly<TIn
|
|
|
1335
1337
|
*/
|
|
1336
1338
|
declare function readonly<TInput>(): ReadonlyAction<TInput>;
|
|
1337
1339
|
|
|
1338
|
-
/**
|
|
1339
|
-
* @internal
|
|
1340
|
-
*/
|
|
1341
1340
|
declare const CustomComponentPropSchema: ObjectSchema<{
|
|
1342
1341
|
/**
|
|
1343
1342
|
* The name of the prop in the user-defined component.
|
|
@@ -1365,7 +1364,6 @@ declare const CustomComponentPropSchema: ObjectSchema<{
|
|
|
1365
1364
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1366
1365
|
}, undefined>;
|
|
1367
1366
|
/**
|
|
1368
|
-
* @internal
|
|
1369
1367
|
* @description
|
|
1370
1368
|
* This will provide some key information to the rule before checking for user-defined components.
|
|
1371
1369
|
* For example:
|
|
@@ -1378,13 +1376,6 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1378
1376
|
* "Link"
|
|
1379
1377
|
*/
|
|
1380
1378
|
readonly name: StringSchema<undefined>;
|
|
1381
|
-
/**
|
|
1382
|
-
* The ESQuery selector to select the component precisely.
|
|
1383
|
-
* @internal
|
|
1384
|
-
* @example
|
|
1385
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1386
|
-
*/
|
|
1387
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1388
1379
|
/**
|
|
1389
1380
|
* The name of the built-in component that the user-defined component represents.
|
|
1390
1381
|
* @example
|
|
@@ -1422,6 +1413,13 @@ declare const CustomComponentSchema: ObjectSchema<{
|
|
|
1422
1413
|
*/
|
|
1423
1414
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1424
1415
|
}, undefined>, undefined>, undefined>;
|
|
1416
|
+
/**
|
|
1417
|
+
* The ESQuery selector to select the component precisely.
|
|
1418
|
+
* @internal
|
|
1419
|
+
* @example
|
|
1420
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1421
|
+
*/
|
|
1422
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1425
1423
|
}, undefined>;
|
|
1426
1424
|
declare const CustomHooksSchema: ObjectSchema<{
|
|
1427
1425
|
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -1454,26 +1452,26 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1454
1452
|
* @default `"react"`
|
|
1455
1453
|
* @example `"@pika/react"`
|
|
1456
1454
|
*/
|
|
1457
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1455
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1458
1456
|
/**
|
|
1459
1457
|
* The identifier that’s used for JSX Element creation.
|
|
1460
1458
|
* @default `"createElement"`
|
|
1461
1459
|
* @deprecated
|
|
1462
1460
|
*/
|
|
1463
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1461
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1464
1462
|
/**
|
|
1465
1463
|
* The identifier that’s used for JSX fragment elements.
|
|
1466
1464
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1467
1465
|
* @default `"Fragment"`
|
|
1468
1466
|
* @deprecated
|
|
1469
1467
|
*/
|
|
1470
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1468
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1471
1469
|
/**
|
|
1472
1470
|
* The name of the prop that is used for polymorphic components.
|
|
1473
1471
|
* @description This is used to determine the type of the component.
|
|
1474
1472
|
* @example `"as"`
|
|
1475
1473
|
*/
|
|
1476
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1474
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1477
1475
|
/**
|
|
1478
1476
|
* @internal
|
|
1479
1477
|
*/
|
|
@@ -1488,7 +1486,33 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1488
1486
|
* @example `"18.3.1"`
|
|
1489
1487
|
* @default `"detect"`
|
|
1490
1488
|
*/
|
|
1491
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1489
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1490
|
+
/**
|
|
1491
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1492
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1493
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1494
|
+
*/
|
|
1495
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1496
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1497
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1498
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1499
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1500
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1501
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1502
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1503
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1504
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1505
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1506
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1507
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1508
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1509
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1510
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1511
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1512
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1513
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1514
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1515
|
+
}, undefined>, undefined>;
|
|
1492
1516
|
/**
|
|
1493
1517
|
* An array of user-defined components
|
|
1494
1518
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1501,13 +1525,6 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1501
1525
|
* "Link"
|
|
1502
1526
|
*/
|
|
1503
1527
|
readonly name: StringSchema<undefined>;
|
|
1504
|
-
/**
|
|
1505
|
-
* The ESQuery selector to select the component precisely.
|
|
1506
|
-
* @internal
|
|
1507
|
-
* @example
|
|
1508
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1509
|
-
*/
|
|
1510
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1511
1528
|
/**
|
|
1512
1529
|
* The name of the built-in component that the user-defined component represents.
|
|
1513
1530
|
* @example
|
|
@@ -1545,33 +1562,14 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1545
1562
|
*/
|
|
1546
1563
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1547
1564
|
}, undefined>, undefined>, undefined>;
|
|
1565
|
+
/**
|
|
1566
|
+
* The ESQuery selector to select the component precisely.
|
|
1567
|
+
* @internal
|
|
1568
|
+
* @example
|
|
1569
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1570
|
+
*/
|
|
1571
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1548
1572
|
}, undefined>, undefined>, undefined>;
|
|
1549
|
-
/**
|
|
1550
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1551
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1552
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1553
|
-
*/
|
|
1554
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1555
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1556
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1557
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1558
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1559
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1560
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1561
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1562
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1563
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1564
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1565
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1566
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1567
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1568
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1569
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1570
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1571
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1572
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1573
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1574
|
-
}, undefined>, undefined>;
|
|
1575
1573
|
}, undefined>;
|
|
1576
1574
|
/**
|
|
1577
1575
|
* @internal
|
|
@@ -1584,26 +1582,26 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1584
1582
|
* @default `"react"`
|
|
1585
1583
|
* @example `"@pika/react"`
|
|
1586
1584
|
*/
|
|
1587
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1585
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1588
1586
|
/**
|
|
1589
1587
|
* The identifier that’s used for JSX Element creation.
|
|
1590
1588
|
* @default `"createElement"`
|
|
1591
1589
|
* @deprecated
|
|
1592
1590
|
*/
|
|
1593
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1591
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1594
1592
|
/**
|
|
1595
1593
|
* The identifier that’s used for JSX fragment elements.
|
|
1596
1594
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1597
1595
|
* @default `"Fragment"`
|
|
1598
1596
|
* @deprecated
|
|
1599
1597
|
*/
|
|
1600
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1598
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1601
1599
|
/**
|
|
1602
1600
|
* The name of the prop that is used for polymorphic components.
|
|
1603
1601
|
* @description This is used to determine the type of the component.
|
|
1604
1602
|
* @example `"as"`
|
|
1605
1603
|
*/
|
|
1606
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1604
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1607
1605
|
/**
|
|
1608
1606
|
* @internal
|
|
1609
1607
|
*/
|
|
@@ -1618,7 +1616,33 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1618
1616
|
* @example `"18.3.1"`
|
|
1619
1617
|
* @default `"detect"`
|
|
1620
1618
|
*/
|
|
1621
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1619
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1620
|
+
/**
|
|
1621
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1622
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1623
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1624
|
+
*/
|
|
1625
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1626
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1627
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1628
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1629
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1630
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1631
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1632
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1633
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1634
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1635
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1636
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1637
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1638
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1639
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1640
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1641
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1642
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1643
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1644
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1645
|
+
}, undefined>, undefined>;
|
|
1622
1646
|
/**
|
|
1623
1647
|
* An array of user-defined components
|
|
1624
1648
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1631,13 +1655,6 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1631
1655
|
* "Link"
|
|
1632
1656
|
*/
|
|
1633
1657
|
readonly name: StringSchema<undefined>;
|
|
1634
|
-
/**
|
|
1635
|
-
* The ESQuery selector to select the component precisely.
|
|
1636
|
-
* @internal
|
|
1637
|
-
* @example
|
|
1638
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1639
|
-
*/
|
|
1640
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1641
1658
|
/**
|
|
1642
1659
|
* The name of the built-in component that the user-defined component represents.
|
|
1643
1660
|
* @example
|
|
@@ -1675,33 +1692,14 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1675
1692
|
*/
|
|
1676
1693
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1677
1694
|
}, undefined>, undefined>, undefined>;
|
|
1695
|
+
/**
|
|
1696
|
+
* The ESQuery selector to select the component precisely.
|
|
1697
|
+
* @internal
|
|
1698
|
+
* @example
|
|
1699
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1700
|
+
*/
|
|
1701
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1678
1702
|
}, undefined>, undefined>, undefined>;
|
|
1679
|
-
/**
|
|
1680
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1681
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1682
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1683
|
-
*/
|
|
1684
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1685
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1686
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1687
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1688
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1689
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1690
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1691
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1692
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1693
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1694
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1695
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1696
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1697
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1698
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1699
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1700
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1701
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1702
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1703
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1704
|
-
}, undefined>, undefined>;
|
|
1705
1703
|
}, undefined>, undefined>;
|
|
1706
1704
|
/** @deprecated Use `react-x` instead */
|
|
1707
1705
|
readonly reactOptions: OptionalSchema<ObjectSchema<{
|
|
@@ -1711,26 +1709,26 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1711
1709
|
* @default `"react"`
|
|
1712
1710
|
* @example `"@pika/react"`
|
|
1713
1711
|
*/
|
|
1714
|
-
readonly importSource: OptionalSchema<StringSchema<undefined>,
|
|
1712
|
+
readonly importSource: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1715
1713
|
/**
|
|
1716
1714
|
* The identifier that’s used for JSX Element creation.
|
|
1717
1715
|
* @default `"createElement"`
|
|
1718
1716
|
* @deprecated
|
|
1719
1717
|
*/
|
|
1720
|
-
readonly jsxPragma: OptionalSchema<StringSchema<undefined>,
|
|
1718
|
+
readonly jsxPragma: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1721
1719
|
/**
|
|
1722
1720
|
* The identifier that’s used for JSX fragment elements.
|
|
1723
1721
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
1724
1722
|
* @default `"Fragment"`
|
|
1725
1723
|
* @deprecated
|
|
1726
1724
|
*/
|
|
1727
|
-
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>,
|
|
1725
|
+
readonly jsxPragmaFrag: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1728
1726
|
/**
|
|
1729
1727
|
* The name of the prop that is used for polymorphic components.
|
|
1730
1728
|
* @description This is used to determine the type of the component.
|
|
1731
1729
|
* @example `"as"`
|
|
1732
1730
|
*/
|
|
1733
|
-
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>,
|
|
1731
|
+
readonly polymorphicPropName: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1734
1732
|
/**
|
|
1735
1733
|
* @internal
|
|
1736
1734
|
*/
|
|
@@ -1745,7 +1743,33 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1745
1743
|
* @example `"18.3.1"`
|
|
1746
1744
|
* @default `"detect"`
|
|
1747
1745
|
*/
|
|
1748
|
-
readonly version: OptionalSchema<StringSchema<undefined>,
|
|
1746
|
+
readonly version: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1747
|
+
/**
|
|
1748
|
+
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1749
|
+
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1750
|
+
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1751
|
+
*/
|
|
1752
|
+
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1753
|
+
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1754
|
+
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1755
|
+
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1756
|
+
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1757
|
+
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1758
|
+
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1759
|
+
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1760
|
+
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1761
|
+
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1762
|
+
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1763
|
+
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1764
|
+
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1765
|
+
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1766
|
+
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1767
|
+
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1768
|
+
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1769
|
+
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1770
|
+
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1771
|
+
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1772
|
+
}, undefined>, undefined>;
|
|
1749
1773
|
/**
|
|
1750
1774
|
* An array of user-defined components
|
|
1751
1775
|
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
@@ -1758,13 +1782,6 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1758
1782
|
* "Link"
|
|
1759
1783
|
*/
|
|
1760
1784
|
readonly name: StringSchema<undefined>;
|
|
1761
|
-
/**
|
|
1762
|
-
* The ESQuery selector to select the component precisely.
|
|
1763
|
-
* @internal
|
|
1764
|
-
* @example
|
|
1765
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1766
|
-
*/
|
|
1767
|
-
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1768
1785
|
/**
|
|
1769
1786
|
* The name of the built-in component that the user-defined component represents.
|
|
1770
1787
|
* @example
|
|
@@ -1802,33 +1819,14 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1802
1819
|
*/
|
|
1803
1820
|
readonly defaultValue: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1804
1821
|
}, undefined>, undefined>, undefined>;
|
|
1822
|
+
/**
|
|
1823
|
+
* The ESQuery selector to select the component precisely.
|
|
1824
|
+
* @internal
|
|
1825
|
+
* @example
|
|
1826
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
1827
|
+
*/
|
|
1828
|
+
readonly selector: OptionalSchema<StringSchema<undefined>, undefined>;
|
|
1805
1829
|
}, undefined>, undefined>, undefined>;
|
|
1806
|
-
/**
|
|
1807
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
1808
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
1809
|
-
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
1810
|
-
*/
|
|
1811
|
-
readonly additionalHooks: OptionalSchema<ObjectSchema<{
|
|
1812
|
-
readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1813
|
-
readonly useActionState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1814
|
-
readonly useCallback: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1815
|
-
readonly useContext: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1816
|
-
readonly useDebugValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1817
|
-
readonly useDeferredValue: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1818
|
-
readonly useEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1819
|
-
readonly useFormStatus: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1820
|
-
readonly useId: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1821
|
-
readonly useImperativeHandle: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1822
|
-
readonly useInsertionEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1823
|
-
readonly useLayoutEffect: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1824
|
-
readonly useMemo: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1825
|
-
readonly useOptimistic: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1826
|
-
readonly useReducer: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1827
|
-
readonly useRef: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1828
|
-
readonly useState: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1829
|
-
readonly useSyncExternalStore: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1830
|
-
readonly useTransition: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
1831
|
-
}, undefined>, undefined>;
|
|
1832
1830
|
}, undefined>, undefined>;
|
|
1833
1831
|
}, undefined>, {}>;
|
|
1834
1832
|
type CustomComponent = InferOutput<typeof CustomComponentSchema>;
|
|
@@ -1840,26 +1838,26 @@ type ESLintSettings = InferOutput<typeof ESLintSettingsSchema>;
|
|
|
1840
1838
|
* The default ESLint settings for "react-x".
|
|
1841
1839
|
*/
|
|
1842
1840
|
declare const DEFAULT_ESLINT_REACT_SETTINGS: {
|
|
1841
|
+
readonly importSource: "react";
|
|
1842
|
+
readonly jsxPragma: "createElement";
|
|
1843
|
+
readonly jsxPragmaFrag: "Fragment";
|
|
1844
|
+
readonly polymorphicPropName: "as";
|
|
1845
|
+
readonly strict: false;
|
|
1846
|
+
readonly strictImportCheck: false;
|
|
1847
|
+
readonly version: "detect";
|
|
1843
1848
|
readonly additionalHooks: {
|
|
1844
1849
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1845
1850
|
};
|
|
1846
|
-
readonly version: string;
|
|
1847
|
-
readonly importSource: string;
|
|
1848
|
-
readonly jsxPragma: string;
|
|
1849
|
-
readonly jsxPragmaFrag: string;
|
|
1850
|
-
readonly polymorphicPropName: string;
|
|
1851
|
-
readonly strict: boolean;
|
|
1852
|
-
readonly strictImportCheck: boolean;
|
|
1853
1851
|
readonly additionalComponents?: {
|
|
1854
1852
|
name: string;
|
|
1855
1853
|
as?: string;
|
|
1856
|
-
selector?: string;
|
|
1857
1854
|
attributes?: {
|
|
1858
1855
|
name: string;
|
|
1859
1856
|
as?: string;
|
|
1860
1857
|
controlled?: boolean;
|
|
1861
1858
|
defaultValue?: string;
|
|
1862
1859
|
}[];
|
|
1860
|
+
selector?: string;
|
|
1863
1861
|
}[];
|
|
1864
1862
|
};
|
|
1865
1863
|
|
|
@@ -2231,4 +2229,4 @@ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-conventio
|
|
|
2231
2229
|
*/
|
|
2232
2230
|
type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
|
|
2233
2231
|
|
|
2234
|
-
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
|
2232
|
+
export { type CustomComponent, type CustomComponentNormalized, type CustomComponentProp, type CustomComponentPropNormalized, CustomComponentPropSchema, CustomComponentSchema, type CustomHooks, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getId, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
package/dist/index.js
CHANGED
|
@@ -221,6 +221,10 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
221
221
|
return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
|
|
222
222
|
};
|
|
223
223
|
var createRuleForPlugin = (pluginName) => utils.ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
224
|
+
|
|
225
|
+
// src/get-id.ts
|
|
226
|
+
var id = 0n;
|
|
227
|
+
var getId = () => (id++).toString();
|
|
224
228
|
var _require = module__default.default.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
|
|
225
229
|
function getReactVersion(fallback = "19.0.0") {
|
|
226
230
|
try {
|
|
@@ -566,13 +570,6 @@ var CustomComponentSchema = object({
|
|
|
566
570
|
* "Link"
|
|
567
571
|
*/
|
|
568
572
|
name: string(),
|
|
569
|
-
/**
|
|
570
|
-
* The ESQuery selector to select the component precisely.
|
|
571
|
-
* @internal
|
|
572
|
-
* @example
|
|
573
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
574
|
-
*/
|
|
575
|
-
selector: optional(string()),
|
|
576
573
|
/**
|
|
577
574
|
* The name of the built-in component that the user-defined component represents.
|
|
578
575
|
* @example
|
|
@@ -584,7 +581,14 @@ var CustomComponentSchema = object({
|
|
|
584
581
|
* @example
|
|
585
582
|
* `Link` component has a `to` attribute that represents the `href` attribute in the built-in `a` element with a default value of `"/"`.
|
|
586
583
|
*/
|
|
587
|
-
attributes: optional(array(CustomComponentPropSchema))
|
|
584
|
+
attributes: optional(array(CustomComponentPropSchema)),
|
|
585
|
+
/**
|
|
586
|
+
* The ESQuery selector to select the component precisely.
|
|
587
|
+
* @internal
|
|
588
|
+
* @example
|
|
589
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
590
|
+
*/
|
|
591
|
+
selector: optional(string())
|
|
588
592
|
});
|
|
589
593
|
var CustomHooksSchema = object({
|
|
590
594
|
use: optional(array(string())),
|
|
@@ -614,26 +618,26 @@ var ESLintReactSettingsSchema = object({
|
|
|
614
618
|
* @default `"react"`
|
|
615
619
|
* @example `"@pika/react"`
|
|
616
620
|
*/
|
|
617
|
-
importSource: optional(string()
|
|
621
|
+
importSource: optional(string()),
|
|
618
622
|
/**
|
|
619
623
|
* The identifier that’s used for JSX Element creation.
|
|
620
624
|
* @default `"createElement"`
|
|
621
625
|
* @deprecated
|
|
622
626
|
*/
|
|
623
|
-
jsxPragma: optional(string()
|
|
627
|
+
jsxPragma: optional(string()),
|
|
624
628
|
/**
|
|
625
629
|
* The identifier that’s used for JSX fragment elements.
|
|
626
630
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
627
631
|
* @default `"Fragment"`
|
|
628
632
|
* @deprecated
|
|
629
633
|
*/
|
|
630
|
-
jsxPragmaFrag: optional(string()
|
|
634
|
+
jsxPragmaFrag: optional(string()),
|
|
631
635
|
/**
|
|
632
636
|
* The name of the prop that is used for polymorphic components.
|
|
633
637
|
* @description This is used to determine the type of the component.
|
|
634
638
|
* @example `"as"`
|
|
635
639
|
*/
|
|
636
|
-
polymorphicPropName: optional(string()
|
|
640
|
+
polymorphicPropName: optional(string()),
|
|
637
641
|
/**
|
|
638
642
|
* @internal
|
|
639
643
|
*/
|
|
@@ -648,19 +652,19 @@ var ESLintReactSettingsSchema = object({
|
|
|
648
652
|
* @example `"18.3.1"`
|
|
649
653
|
* @default `"detect"`
|
|
650
654
|
*/
|
|
651
|
-
version: optional(string()
|
|
652
|
-
/**
|
|
653
|
-
* An array of user-defined components
|
|
654
|
-
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
655
|
-
* @example `[{ name: "Link", as: "a", attributes: [{ name: "to", as: "href" }, { name: "rel", defaultValue: "noopener noreferrer" }] }]`
|
|
656
|
-
*/
|
|
657
|
-
additionalComponents: optional(array(CustomComponentSchema)),
|
|
655
|
+
version: optional(string()),
|
|
658
656
|
/**
|
|
659
657
|
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
660
658
|
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
661
659
|
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
662
660
|
*/
|
|
663
|
-
additionalHooks: optional(CustomHooksSchema)
|
|
661
|
+
additionalHooks: optional(CustomHooksSchema),
|
|
662
|
+
/**
|
|
663
|
+
* An array of user-defined components
|
|
664
|
+
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
665
|
+
* @example `[{ name: "Link", as: "a", attributes: [{ name: "to", as: "href" }, { name: "rel", defaultValue: "noopener noreferrer" }] }]`
|
|
666
|
+
*/
|
|
667
|
+
additionalComponents: optional(array(CustomComponentSchema))
|
|
664
668
|
});
|
|
665
669
|
var ESLintSettingsSchema = optional(
|
|
666
670
|
object({
|
|
@@ -672,6 +676,13 @@ var ESLintSettingsSchema = optional(
|
|
|
672
676
|
);
|
|
673
677
|
var DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
674
678
|
...parse(ESLintReactSettingsSchema, {}),
|
|
679
|
+
importSource: "react",
|
|
680
|
+
jsxPragma: "createElement",
|
|
681
|
+
jsxPragmaFrag: "Fragment",
|
|
682
|
+
polymorphicPropName: "as",
|
|
683
|
+
strict: false,
|
|
684
|
+
strictImportCheck: false,
|
|
685
|
+
version: "detect",
|
|
675
686
|
additionalHooks: {
|
|
676
687
|
useLayoutEffect: ["useIsomorphicLayoutEffect"]
|
|
677
688
|
}
|
|
@@ -1436,6 +1447,7 @@ exports.WEBSITE_URL = WEBSITE_URL;
|
|
|
1436
1447
|
exports.createRuleForPlugin = createRuleForPlugin;
|
|
1437
1448
|
exports.decodeSettings = decodeSettings;
|
|
1438
1449
|
exports.defineSettings = defineSettings;
|
|
1450
|
+
exports.getId = getId;
|
|
1439
1451
|
exports.getReactVersion = getReactVersion;
|
|
1440
1452
|
exports.getSettingsFromContext = getSettingsFromContext;
|
|
1441
1453
|
exports.toNormalizedSettings = toNormalizedSettings;
|
package/dist/index.mjs
CHANGED
|
@@ -213,6 +213,10 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
213
213
|
return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
|
|
214
214
|
};
|
|
215
215
|
var createRuleForPlugin = (pluginName) => ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
216
|
+
|
|
217
|
+
// src/get-id.ts
|
|
218
|
+
var id = 0n;
|
|
219
|
+
var getId = () => (id++).toString();
|
|
216
220
|
var _require = module.createRequire(import.meta.url);
|
|
217
221
|
function getReactVersion(fallback = "19.0.0") {
|
|
218
222
|
try {
|
|
@@ -558,13 +562,6 @@ var CustomComponentSchema = object({
|
|
|
558
562
|
* "Link"
|
|
559
563
|
*/
|
|
560
564
|
name: string(),
|
|
561
|
-
/**
|
|
562
|
-
* The ESQuery selector to select the component precisely.
|
|
563
|
-
* @internal
|
|
564
|
-
* @example
|
|
565
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
566
|
-
*/
|
|
567
|
-
selector: optional(string()),
|
|
568
565
|
/**
|
|
569
566
|
* The name of the built-in component that the user-defined component represents.
|
|
570
567
|
* @example
|
|
@@ -576,7 +573,14 @@ var CustomComponentSchema = object({
|
|
|
576
573
|
* @example
|
|
577
574
|
* `Link` component has a `to` attribute that represents the `href` attribute in the built-in `a` element with a default value of `"/"`.
|
|
578
575
|
*/
|
|
579
|
-
attributes: optional(array(CustomComponentPropSchema))
|
|
576
|
+
attributes: optional(array(CustomComponentPropSchema)),
|
|
577
|
+
/**
|
|
578
|
+
* The ESQuery selector to select the component precisely.
|
|
579
|
+
* @internal
|
|
580
|
+
* @example
|
|
581
|
+
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
582
|
+
*/
|
|
583
|
+
selector: optional(string())
|
|
580
584
|
});
|
|
581
585
|
var CustomHooksSchema = object({
|
|
582
586
|
use: optional(array(string())),
|
|
@@ -606,26 +610,26 @@ var ESLintReactSettingsSchema = object({
|
|
|
606
610
|
* @default `"react"`
|
|
607
611
|
* @example `"@pika/react"`
|
|
608
612
|
*/
|
|
609
|
-
importSource: optional(string()
|
|
613
|
+
importSource: optional(string()),
|
|
610
614
|
/**
|
|
611
615
|
* The identifier that’s used for JSX Element creation.
|
|
612
616
|
* @default `"createElement"`
|
|
613
617
|
* @deprecated
|
|
614
618
|
*/
|
|
615
|
-
jsxPragma: optional(string()
|
|
619
|
+
jsxPragma: optional(string()),
|
|
616
620
|
/**
|
|
617
621
|
* The identifier that’s used for JSX fragment elements.
|
|
618
622
|
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
619
623
|
* @default `"Fragment"`
|
|
620
624
|
* @deprecated
|
|
621
625
|
*/
|
|
622
|
-
jsxPragmaFrag: optional(string()
|
|
626
|
+
jsxPragmaFrag: optional(string()),
|
|
623
627
|
/**
|
|
624
628
|
* The name of the prop that is used for polymorphic components.
|
|
625
629
|
* @description This is used to determine the type of the component.
|
|
626
630
|
* @example `"as"`
|
|
627
631
|
*/
|
|
628
|
-
polymorphicPropName: optional(string()
|
|
632
|
+
polymorphicPropName: optional(string()),
|
|
629
633
|
/**
|
|
630
634
|
* @internal
|
|
631
635
|
*/
|
|
@@ -640,19 +644,19 @@ var ESLintReactSettingsSchema = object({
|
|
|
640
644
|
* @example `"18.3.1"`
|
|
641
645
|
* @default `"detect"`
|
|
642
646
|
*/
|
|
643
|
-
version: optional(string()
|
|
644
|
-
/**
|
|
645
|
-
* An array of user-defined components
|
|
646
|
-
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
647
|
-
* @example `[{ name: "Link", as: "a", attributes: [{ name: "to", as: "href" }, { name: "rel", defaultValue: "noopener noreferrer" }] }]`
|
|
648
|
-
*/
|
|
649
|
-
additionalComponents: optional(array(CustomComponentSchema)),
|
|
647
|
+
version: optional(string()),
|
|
650
648
|
/**
|
|
651
649
|
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
652
650
|
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
653
651
|
* @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
|
|
654
652
|
*/
|
|
655
|
-
additionalHooks: optional(CustomHooksSchema)
|
|
653
|
+
additionalHooks: optional(CustomHooksSchema),
|
|
654
|
+
/**
|
|
655
|
+
* An array of user-defined components
|
|
656
|
+
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
657
|
+
* @example `[{ name: "Link", as: "a", attributes: [{ name: "to", as: "href" }, { name: "rel", defaultValue: "noopener noreferrer" }] }]`
|
|
658
|
+
*/
|
|
659
|
+
additionalComponents: optional(array(CustomComponentSchema))
|
|
656
660
|
});
|
|
657
661
|
var ESLintSettingsSchema = optional(
|
|
658
662
|
object({
|
|
@@ -664,6 +668,13 @@ var ESLintSettingsSchema = optional(
|
|
|
664
668
|
);
|
|
665
669
|
var DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
666
670
|
...parse(ESLintReactSettingsSchema, {}),
|
|
671
|
+
importSource: "react",
|
|
672
|
+
jsxPragma: "createElement",
|
|
673
|
+
jsxPragmaFrag: "Fragment",
|
|
674
|
+
polymorphicPropName: "as",
|
|
675
|
+
strict: false,
|
|
676
|
+
strictImportCheck: false,
|
|
677
|
+
version: "detect",
|
|
667
678
|
additionalHooks: {
|
|
668
679
|
useLayoutEffect: ["useIsomorphicLayoutEffect"]
|
|
669
680
|
}
|
|
@@ -1407,4 +1418,4 @@ function getSettingsFromContext(context) {
|
|
|
1407
1418
|
}
|
|
1408
1419
|
var defineSettings = identity;
|
|
1409
1420
|
|
|
1410
|
-
export { CustomComponentPropSchema, CustomComponentSchema, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
|
1421
|
+
export { CustomComponentPropSchema, CustomComponentSchema, CustomHooksSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getId, getReactVersion, getSettingsFromContext, toNormalizedSettings, unsafeDecodeSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.13",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@typescript-eslint/utils": "^8.20.0",
|
|
37
37
|
"picomatch": "^4.0.2",
|
|
38
38
|
"ts-pattern": "^5.6.0",
|
|
39
|
-
"@eslint-react/eff": "1.24.0-next.
|
|
39
|
+
"@eslint-react/eff": "1.24.0-next.13"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/picomatch": "^3.0.1",
|