Skip to content

Commit b2e390e

Browse files
committed
fix(eslint-config): improve @typescript-eslint/no-unused-vars
1 parent 55053b7 commit b2e390e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-config/index.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ module.exports = defineConfig({
183183
],
184184
'@typescript-eslint/ban-ts-comment': 'off',
185185
'@typescript-eslint/array-type': 'off',
186+
'@typescript-eslint/no-unused-vars': ['warn', {
187+
args: 'after-used',
188+
argsIgnorePattern: '^_',
189+
caughtErrors: 'none',
190+
ignoreRestSiblings: true
191+
}],
186192

187193
// vue
188194
'vue/eqeqeq': 'error',

0 commit comments

Comments
 (0)