forked from kubestellar/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
22 lines (19 loc) · 775 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
22 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { createRequire } from "module";
const require = createRequire(import.meta.url);
// eslint-config-next 16.x exports flat config arrays natively.
// FlatCompat is NOT needed and causes "Converting circular structure to JSON"
// errors due to eslint-plugin-react self-references in its configs object.
const coreWebVitals = require("eslint-config-next/core-web-vitals");
export default [
...coreWebVitals,
{
// Suppress React Compiler rules introduced in Next.js 16 / react-hooks v6.
// The codebase predates these strict rules; enable incrementally later.
rules: {
"react-hooks/immutability": "off",
"react-hooks/purity": "off",
"react-hooks/set-state-in-effect": "off",
"react-hooks/static-components": "off",
},
},
];