Skip to content

Commit 16ed8de

Browse files
committed
allow underscore vars in lint
1 parent fc61cda commit 16ed8de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ module.exports = {
1010
root: true,
1111
ignorePatterns: ['dist/', 'src/gen/', 'docs/'],
1212
rules: {
13-
'@typescript-eslint/no-unused-vars': 'error',
13+
'@typescript-eslint/no-unused-vars': [
14+
'error',
15+
{
16+
varsIgnorePattern: '^_',
17+
argsIgnorePattern: '^_',
18+
caughtErrorsIgnorePattern: '^_',
19+
},
20+
],
1421
},
1522
}

0 commit comments

Comments
 (0)