@zetavg/eslint-config 0.0.8-pre.7 → 0.0.8-pre.9

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.
@@ -23,5 +23,13 @@ export default defineConfig([
23
23
  'import/enforce-node-protocol-usage': 'warn',
24
24
  'import/no-unresolved': 'off', // This sometimes cannot resolve paths correctly, providing false alerts.
25
25
  },
26
+ settings: {
27
+ 'import/ignore': [
28
+ // `eslint-plugin-import` inspects imported packages to validate exports.
29
+ // React Native's entry file uses Flow-only syntax, so we skip import
30
+ // analysis for that package.
31
+ 'node_modules/react-native/',
32
+ ],
33
+ },
26
34
  },
27
35
  ]);
package/configs/react.js CHANGED
@@ -15,7 +15,11 @@ export default defineConfig([
15
15
  },
16
16
  settings: {
17
17
  react: {
18
- version: 'detect',
18
+ // eslint-plugin-react uses the legacy `context.getFilename()` API for version auto-detection, which was removed in ESLint v10.
19
+ // To work around this, we can only specify the React version explicitly. We should update this when eslint-plugin-react releases a new version that supports the new API.
20
+ // See: https://github.com/vercel/next.js/issues/89764#issuecomment-3928272828
21
+ // version: 'detect',
22
+ version: '19',
19
23
  },
20
24
  },
21
25
  },
package/package.json CHANGED
@@ -61,15 +61,14 @@
61
61
  "eslint-plugin-simple-import-sort": "^12",
62
62
  "eslint-plugin-unicorn": "^59 || ^63",
63
63
  "globals": "^16 || ^17",
64
- "jsonc-eslint-parser": "^3.1.0",
65
64
  "typescript-eslint": "^8"
66
65
  },
67
66
  "devDependencies": {
68
- "@zetavg/prettier-config": "^0.0.8-pre.7",
69
- "@zetavg/tsconfig": "^0.0.8-pre.7",
67
+ "@zetavg/prettier-config": "^0.0.8-pre.9",
68
+ "@zetavg/tsconfig": "^0.0.8-pre.9",
70
69
  "eslint": "^9",
71
70
  "prettier": "^3",
72
71
  "typescript": "~5.8"
73
72
  },
74
- "version": "0.0.8-pre.7"
73
+ "version": "0.0.8-pre.9"
75
74
  }