8000 ESLint: Disable `no-unused-vars` for parameters starting with `_` · github/codeql-action@d25fa60 · GitHub
[go: up one dir, main page]

Skip to content

Commit d25fa60

Browse files
committed
ESLint: Disable no-unused-vars for parameters starting with _
1 parent 9a0b46a commit d25fa60

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ export default [
146146
"@typescript-eslint/prefer-regexp-exec": "off",
147147
"@typescript-eslint/require-await": "off",
148148
"@typescript-eslint/restrict-template-expressions": "off",
149+
"@typescript-eslint/no-unused-vars": [
150+
"error",
151+
{
152+
"argsIgnorePattern": "^_",
153+
}
154+
],
149155
"func-style": "off",
150156
},
151157
},

src/config/db-config.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ const packSpecPrettyPrintingMacro = test.macro({
153153
title: (
154154
_providedTitle: string | undefined,
155155
packStr: string,
156-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
157156
_packObj: dbConfig.Pack,
158157
) => `Prettyprint pack spec: '${packStr}'`,
159158
});

0 commit comments

Comments
 (0)
0