32 lines
715 B
JavaScript
32 lines
715 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/set-state-in-effect": "warn",
|
|
"react-hooks/refs": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
globalIgnores([
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
"*.config.js",
|
|
"check-env-variables.js",
|
|
"next-sitemap.js",
|
|
]),
|
|
])
|