28 lines
696 B
JavaScript
28 lines
696 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
export default defineConfig([
|
|
...nextVitals,
|
|
...nextTs,
|
|
{
|
|
rules: {
|
|
"react-hooks/immutability": "warn",
|
|
"react-hooks/refs": "warn",
|
|
"react-hooks/set-state-in-effect": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
|
|
],
|
|
},
|
|
},
|
|
globalIgnores([
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"coverage/**",
|
|
"next-env.d.ts",
|
|
"tsconfig.tsbuildinfo",
|
|
]),
|
|
]);
|