Skip to content

Commit acad7e2

Browse files
committed
chore: don't warn on unused variables beginning with _
1 parent d934d89 commit acad7e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"rules": {
2525
"no-var": "error",
26-
"@typescript-eslint/explicit-function-return-type": "off"
26+
"@typescript-eslint/explicit-function-return-type": "off",
27+
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
2728
}
2829
}

tools/generate-configs/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const getRecommendedRulesForTestingFramework = (
1313
framework: SupportedTestingFramework
1414
): LinterConfigRules =>
1515
Object.entries(rules)
16-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1716
.filter(([_, { meta: { docs } }]) =>
1817
Boolean(docs.recommendedConfig[framework])
1918
)

0 commit comments

Comments
 (0)