2026-05-08 13:35:00 +09:00
|
|
|
import globals from "globals"
|
|
|
|
|
import nextPlugin from "@next/eslint-plugin-next"
|
|
|
|
|
import prettier from "eslint-config-prettier/flat"
|
|
|
|
|
import tseslint from "typescript-eslint"
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
ignores: [".next/**", "out/**", "build/**", "next-env.d.ts"],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.{js,mjs,cjs,ts,tsx,jsx}"],
|
|
|
|
|
languageOptions: {
|
|
|
|
|
ecmaVersion: "latest",
|
|
|
|
|
sourceType: "module",
|
|
|
|
|
globals: {
|
|
|
|
|
...globals.browser,
|
|
|
|
|
...globals.nodeBuiltin,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-05-08 15:25:51 +09:00
|
|
|
nextPlugin.flatConfig.coreWebVitals,
|
2026-05-08 13:35:00 +09:00
|
|
|
...tseslint.configs.recommended,
|
|
|
|
|
prettier,
|
|
|
|
|
{
|
|
|
|
|
rules: {
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
argsIgnorePattern: "^_",
|
|
|
|
|
varsIgnorePattern: "^_",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
prefer: "type-imports",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
|
|
|
"prefer-const": "error",
|
|
|
|
|
"no-var": "error",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|