Skip to content

Commit 5cdc1a9

Browse files
committed
ignoreRestSiblingsを設定
1 parent 89a3b98 commit 5cdc1a9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

eslint.config.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,20 @@ const compat = new FlatCompat({
1010
});
1111

1212
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
13+
...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+
}),
1427
];
1528

1629
export default eslintConfig;

0 commit comments

Comments
 (0)