-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
29 lines (27 loc) · 935 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
29 lines (27 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import next from "eslint-config-next";
// Flat config (ESLint 9/10 + Next 16). eslint-config-next now ships native
// flat-config arrays, so we spread them directly — no @eslint/eslintrc bridge
// (which breaks under ESLint 10).
const eslintConfig = [
...next,
{
ignores: [
".next/**",
"node_modules/**",
"eval/dashboard/**",
"lib/__fixtures__/**",
],
},
{
// The React Compiler lint rules are advisory and currently fire on
// legitimate patterns (SSR mount flags, data-fetch loading resets, DOM
// media writes like `player.currentTime = …`, post-fetch async setState).
// Keep them visible as warnings rather than blocking the build; genuine
// derivable-state smells are addressed during the component decomposition.
rules: {
"react-hooks/set-state-in-effect": "warn",
"react-hooks/immutability": "warn",
},
},
];
export default eslintConfig;