@@ -140,14 +140,25 @@ export default [
140140 'no-else-return' : 'error' ,
141141 'no-nested-ternary' : 'error' ,
142142
143+ '@typescript-eslint/no-unused-vars' : [
144+ 'error' ,
145+ {
146+ args : 'all' ,
147+ argsIgnorePattern : '^_' ,
148+ caughtErrors : 'all' ,
149+ caughtErrorsIgnorePattern : '^_' ,
150+ destructuredArrayIgnorePattern : '^_' ,
151+ varsIgnorePattern : '^_' ,
152+ ignoreRestSiblings : true ,
153+ } ,
154+ ] ,
155+
143156 // Use `import type` everywhere we can.
144157 '@typescript-eslint/consistent-type-imports' : 'error' ,
145158 // Allow `as any` escape hatches
146159 '@typescript-eslint/no-explicit-any' : 'off' ,
147160 // Disable a rule that the TypeScript FAQ disapproves of
148161 '@typescript-eslint/no-empty-object-type' : 'off' ,
149- // Should enable this soon, mostly finds `catch (e)` with unused e
150- '@typescript-eslint/no-unused-vars' : 'off' ,
151162 // TypeScript imports react-jsx into .tsx files for us
152163 'react/react-in-jsx-scope' : 'off' ,
153164 // Allow @ts -expect-error annotations with descriptions.
0 commit comments