mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
33 lines
817 B
JavaScript
33 lines
817 B
JavaScript
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
|
import prettier from "eslint-config-prettier";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
"public/sw.js",
|
|
"public/workbox-*.js",
|
|
"public/swe-worker-*.js",
|
|
],
|
|
},
|
|
...nextCoreWebVitals,
|
|
{
|
|
plugins: {
|
|
"@typescript-eslint": tseslint.plugin,
|
|
"react-hooks": reactHooks,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"@typescript-eslint/no-unused-expressions": "warn",
|
|
"react-hooks/immutability": "warn",
|
|
"react-hooks/refs": "warn",
|
|
"react-hooks/set-state-in-effect": "warn",
|
|
},
|
|
},
|
|
prettier,
|
|
]; |