@debbl/eslint-config 3.2.3 → 3.2.4

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 CHANGED
@@ -1512,7 +1512,11 @@ async function next() {
1512
1512
  "react-refresh/only-export-components": [
1513
1513
  "warn",
1514
1514
  {
1515
- allowExportNames: ["metadata"]
1515
+ allowExportNames: [
1516
+ "metadata",
1517
+ "generateMetadata",
1518
+ "generateStaticParams"
1519
+ ]
1516
1520
  }
1517
1521
  ]
1518
1522
  }
@@ -1570,17 +1574,7 @@ var react = async (options) => {
1570
1574
  ...pluginReact.configs.recommended.rules,
1571
1575
  ...pluginReactHooks.configs.recommended.rules,
1572
1576
  // React Refresh
1573
- "react-refresh/only-export-components": [
1574
- "warn",
1575
- {
1576
- allowExportNames: [
1577
- // remix
1578
- ...["meta", "links", "headers", "loader", "action"],
1579
- // nextjs
1580
- ...["generateMetadata", "generateStaticParams"]
1581
- ]
1582
- }
1583
- ],
1577
+ "react-refresh/only-export-components": "warn",
1584
1578
  // React Compiler
1585
1579
  ...enableCompiler ? {
1586
1580
  "react-compiler/react-compiler": "error"
package/dist/index.js CHANGED
@@ -1430,7 +1430,11 @@ async function next() {
1430
1430
  "react-refresh/only-export-components": [
1431
1431
  "warn",
1432
1432
  {
1433
- allowExportNames: ["metadata"]
1433
+ allowExportNames: [
1434
+ "metadata",
1435
+ "generateMetadata",
1436
+ "generateStaticParams"
1437
+ ]
1434
1438
  }
1435
1439
  ]
1436
1440
  }
@@ -1488,17 +1492,7 @@ var react = async (options) => {
1488
1492
  ...pluginReact.configs.recommended.rules,
1489
1493
  ...pluginReactHooks.configs.recommended.rules,
1490
1494
  // React Refresh
1491
- "react-refresh/only-export-components": [
1492
- "warn",
1493
- {
1494
- allowExportNames: [
1495
- // remix
1496
- ...["meta", "links", "headers", "loader", "action"],
1497
- // nextjs
1498
- ...["generateMetadata", "generateStaticParams"]
1499
- ]
1500
- }
1501
- ],
1495
+ "react-refresh/only-export-components": "warn",
1502
1496
  // React Compiler
1503
1497
  ...enableCompiler ? {
1504
1498
  "react-compiler/react-compiler": "error"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "3.2.3",
4
+ "version": "3.2.4",
5
5
  "description": "Brendan Dash's ESLint config",
6
6
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
7
7
  "license": "MIT",