diff --git a/eslint.config.mjs b/eslint.config.mjs index c85fb67..ead83e3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -10,7 +10,20 @@ const compat = new FlatCompat({ }); const eslintConfig = [ - ...compat.extends("next/core-web-vitals", "next/typescript"), + ...compat.config({ + extends: ["next/core-web-vitals", "next/typescript"], + rules: { + // Next.jsのデフォルト設定を上書き + "@typescript-eslint/no-unused-vars": [ + "error", + { + vars: "all", + args: "after-used", + ignoreRestSiblings: true, + }, + ], + }, + }), ]; export default eslintConfig;