File tree 2 files changed +5
-25
lines changed
2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ export default tseslint.config(
39
39
40
40
rules : {
41
41
'@typescript-eslint/no-base-to-string' : 'off' , // 1 instance
42
+ '@typescript-eslint/prefer-promise-reject-errors' : [ 'error' , {
43
+ // for catch (e) { reject(e); } scenarios, until promises are refactored
44
+ allowThrowingAny : true ,
45
+ allowThrowingUnknown : true ,
46
+ } ] ,
42
47
43
48
'@stylistic/indent-binary-ops' : 'off' , // this is a weird rule
44
49
'@stylistic/max-len' : [ 'error' , {
@@ -73,7 +78,6 @@ export default tseslint.config(
73
78
'@typescript-eslint/no-misused-promises' : 'off' , // 53 instances
74
79
'@typescript-eslint/no-floating-promises' : 'off' , // 48 instances
75
80
'no-async-promise-executor' : 'off' , // 25 instances
76
- '@typescript-eslint/prefer-promise-reject-errors' : 'off' , // 19 instances
77
81
}
78
82
} ,
79
83
{
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments