@debbl/eslint-config 3.2.0 → 3.2.2
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.cjs +12 -20
- package/dist/index.js +12 -20
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1541,7 +1541,13 @@ var react = async (options) => {
|
|
|
1541
1541
|
plugins: {
|
|
1542
1542
|
"react": pluginReact,
|
|
1543
1543
|
"react-hooks": pluginReactHooks,
|
|
1544
|
-
"react-refresh": pluginReactRefresh
|
|
1544
|
+
"react-refresh": pluginReactRefresh,
|
|
1545
|
+
...enableCompiler ? {
|
|
1546
|
+
"react-compiler": await interopDefault(
|
|
1547
|
+
// @ts-expect-error missing types
|
|
1548
|
+
import("eslint-plugin-react-compiler")
|
|
1549
|
+
)
|
|
1550
|
+
} : {}
|
|
1545
1551
|
}
|
|
1546
1552
|
},
|
|
1547
1553
|
{
|
|
@@ -1565,6 +1571,10 @@ var react = async (options) => {
|
|
|
1565
1571
|
...pluginReactHooks.configs.recommended.rules,
|
|
1566
1572
|
// React Refresh
|
|
1567
1573
|
"react-refresh/only-export-components": "warn",
|
|
1574
|
+
// React Compiler
|
|
1575
|
+
...enableCompiler ? {
|
|
1576
|
+
"react-compiler/react-compiler": "error"
|
|
1577
|
+
} : {},
|
|
1568
1578
|
"jsx-quotes": ["error", "prefer-double"],
|
|
1569
1579
|
"react/react-in-jsx-scope": "off",
|
|
1570
1580
|
"react/jsx-indent": [1, 2],
|
|
@@ -1577,25 +1587,7 @@ var react = async (options) => {
|
|
|
1577
1587
|
}
|
|
1578
1588
|
}
|
|
1579
1589
|
];
|
|
1580
|
-
|
|
1581
|
-
{
|
|
1582
|
-
name: "eslint/react/compiler",
|
|
1583
|
-
plugins: {
|
|
1584
|
-
"react-compiler": await interopDefault(
|
|
1585
|
-
// @ts-expect-error missing types
|
|
1586
|
-
import("eslint-plugin-react-compiler")
|
|
1587
|
-
)
|
|
1588
|
-
},
|
|
1589
|
-
rules: {
|
|
1590
|
-
"react-compiler/react-compiler": "error"
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
];
|
|
1594
|
-
return combine(
|
|
1595
|
-
_react,
|
|
1596
|
-
enableCompiler ? reactCompiler : [],
|
|
1597
|
-
enableNext ? next() : []
|
|
1598
|
-
);
|
|
1590
|
+
return combine(_react, enableNext ? next() : []);
|
|
1599
1591
|
};
|
|
1600
1592
|
|
|
1601
1593
|
// src/configs/tailwindcss.ts
|
package/dist/index.js
CHANGED
|
@@ -1459,7 +1459,13 @@ var react = async (options) => {
|
|
|
1459
1459
|
plugins: {
|
|
1460
1460
|
"react": pluginReact,
|
|
1461
1461
|
"react-hooks": pluginReactHooks,
|
|
1462
|
-
"react-refresh": pluginReactRefresh
|
|
1462
|
+
"react-refresh": pluginReactRefresh,
|
|
1463
|
+
...enableCompiler ? {
|
|
1464
|
+
"react-compiler": await interopDefault(
|
|
1465
|
+
// @ts-expect-error missing types
|
|
1466
|
+
import("eslint-plugin-react-compiler")
|
|
1467
|
+
)
|
|
1468
|
+
} : {}
|
|
1463
1469
|
}
|
|
1464
1470
|
},
|
|
1465
1471
|
{
|
|
@@ -1483,6 +1489,10 @@ var react = async (options) => {
|
|
|
1483
1489
|
...pluginReactHooks.configs.recommended.rules,
|
|
1484
1490
|
// React Refresh
|
|
1485
1491
|
"react-refresh/only-export-components": "warn",
|
|
1492
|
+
// React Compiler
|
|
1493
|
+
...enableCompiler ? {
|
|
1494
|
+
"react-compiler/react-compiler": "error"
|
|
1495
|
+
} : {},
|
|
1486
1496
|
"jsx-quotes": ["error", "prefer-double"],
|
|
1487
1497
|
"react/react-in-jsx-scope": "off",
|
|
1488
1498
|
"react/jsx-indent": [1, 2],
|
|
@@ -1495,25 +1505,7 @@ var react = async (options) => {
|
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
1497
1507
|
];
|
|
1498
|
-
|
|
1499
|
-
{
|
|
1500
|
-
name: "eslint/react/compiler",
|
|
1501
|
-
plugins: {
|
|
1502
|
-
"react-compiler": await interopDefault(
|
|
1503
|
-
// @ts-expect-error missing types
|
|
1504
|
-
import("eslint-plugin-react-compiler")
|
|
1505
|
-
)
|
|
1506
|
-
},
|
|
1507
|
-
rules: {
|
|
1508
|
-
"react-compiler/react-compiler": "error"
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
];
|
|
1512
|
-
return combine(
|
|
1513
|
-
_react,
|
|
1514
|
-
enableCompiler ? reactCompiler : [],
|
|
1515
|
-
enableNext ? next() : []
|
|
1516
|
-
);
|
|
1508
|
+
return combine(_react, enableNext ? next() : []);
|
|
1517
1509
|
};
|
|
1518
1510
|
|
|
1519
1511
|
// src/configs/tailwindcss.ts
|