@lincy/eslint-config 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -5
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1550,7 +1550,7 @@ async function react(options = {}) {
|
|
|
1550
1550
|
// @ts-expect-error missing types
|
|
1551
1551
|
interopDefault(import("eslint-plugin-react-refresh"))
|
|
1552
1552
|
]);
|
|
1553
|
-
const
|
|
1553
|
+
const _isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some(
|
|
1554
1554
|
(i) => (0, import_local_pkg3.isPackageExists)(i)
|
|
1555
1555
|
);
|
|
1556
1556
|
return [
|
|
@@ -1577,10 +1577,11 @@ async function react(options = {}) {
|
|
|
1577
1577
|
"react-hooks/exhaustive-deps": "warn",
|
|
1578
1578
|
"react-hooks/rules-of-hooks": "error",
|
|
1579
1579
|
// react-refresh
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
],
|
|
1580
|
+
// 'react-refresh/only-export-components': [
|
|
1581
|
+
// 'warn',
|
|
1582
|
+
// { allowConstantExport: _isAllowConstantExport },
|
|
1583
|
+
// ],
|
|
1584
|
+
"react-refresh/only-export-components": "off",
|
|
1584
1585
|
// react
|
|
1585
1586
|
"react/boolean-prop-naming": "error",
|
|
1586
1587
|
"react/button-has-type": "error",
|
package/dist/index.js
CHANGED
|
@@ -1468,7 +1468,7 @@ async function react(options = {}) {
|
|
|
1468
1468
|
// @ts-expect-error missing types
|
|
1469
1469
|
interopDefault(import("eslint-plugin-react-refresh"))
|
|
1470
1470
|
]);
|
|
1471
|
-
const
|
|
1471
|
+
const _isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some(
|
|
1472
1472
|
(i) => isPackageExists2(i)
|
|
1473
1473
|
);
|
|
1474
1474
|
return [
|
|
@@ -1495,10 +1495,11 @@ async function react(options = {}) {
|
|
|
1495
1495
|
"react-hooks/exhaustive-deps": "warn",
|
|
1496
1496
|
"react-hooks/rules-of-hooks": "error",
|
|
1497
1497
|
// react-refresh
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
],
|
|
1498
|
+
// 'react-refresh/only-export-components': [
|
|
1499
|
+
// 'warn',
|
|
1500
|
+
// { allowConstantExport: _isAllowConstantExport },
|
|
1501
|
+
// ],
|
|
1502
|
+
"react-refresh/only-export-components": "off",
|
|
1502
1503
|
// react
|
|
1503
1504
|
"react/boolean-prop-naming": "error",
|
|
1504
1505
|
"react/button-has-type": "error",
|
package/package.json
CHANGED