Rocky_Mountain_Vending/eslint.config.mjs

35 lines
1,021 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config"
import nextVitals from "eslint-config-next/core-web-vitals"
import nextTypescript from "eslint-config-next/typescript"
import prettier from "eslint-config-prettier/flat"
export default defineConfig([
...nextVitals,
...nextTypescript,
prettier,
{
rules: {
"@next/next/no-html-link-for-pages": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-explicit-any": "warn",
"prefer-const": "warn",
"react/no-unescaped-entities": "warn",
"react-hooks/error-boundaries": "off",
"react-hooks/purity": "warn",
"react-hooks/set-state-in-effect": "warn",
"react-hooks/static-components": "warn",
},
},
globalIgnores([
".next/**",
".playwright-cli/**",
"artifacts/**",
"convex/_generated/**",
"node_modules/**",
"out/**",
"output/**",
"public/**/*.json",
"scripts/one-off/**",
]),
])