Skip to content

Commit a19660b

Browse files
AmirrezaASafaeirad
authored andcommitted
feat: add preserve-caught-error rule in strict mode to base config
1 parent 0517f01 commit a19660b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/modules/base.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ function base(options = {}) {
157157
'one-var': ['error', { uninitialized: 'never', initialized: 'never' }],
158158
'prefer-arrow-callback': ['warn', { allowNamedFunctions: true, allowUnboundThis: true }],
159159
'prefer-const': 'warn',
160+
'preserve-caught-error': strict(options, [
161+
'warn',
162+
{
163+
requireCatchParameter: true,
164+
},
165+
]),
160166
'prefer-exponentiation-operator': 'warn',
161167
'prefer-numeric-literals': 'error',
162168
'prefer-object-has-own': 'warn',

0 commit comments

Comments
 (0)