We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89a3b98 + 5cdc1a9 commit 05e15b3Copy full SHA for 05e15b3
1 file changed
eslint.config.mjs
@@ -10,7 +10,20 @@ const compat = new FlatCompat({
10
});
11
12
const eslintConfig = [
13
- ...compat.extends("next/core-web-vitals", "next/typescript"),
+ ...compat.config({
14
+ extends: ["next/core-web-vitals", "next/typescript"],
15
+ rules: {
16
+ // Next.jsのデフォルト設定を上書き
17
+ "@typescript-eslint/no-unused-vars": [
18
+ "error",
19
+ {
20
+ vars: "all",
21
+ args: "after-used",
22
+ ignoreRestSiblings: true,
23
+ },
24
+ ],
25
26
+ }),
27
];
28
29
export default eslintConfig;
0 commit comments