Skip to content

Commit 05e15b3

Browse files
authored
Merge pull request #9 from ut-code/eslint-ignore-underscore
markdownレンダー部分のeslintエラー解消
2 parents 89a3b98 + 5cdc1a9 commit 05e15b3

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)