Skip to content

Commit d236580

Browse files
committed
style: configure prefer-promise-reject-errors rule, remove a bit of dead code
1 parent d99269c commit d236580

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

eslint.config.mjs

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export default tseslint.config(
3939

4040
rules: {
4141
'@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+
}],
4247

4348
'@stylistic/indent-binary-ops': 'off', // this is a weird rule
4449
'@stylistic/max-len': ['error', {
@@ -73,7 +78,6 @@ export default tseslint.config(
7378
'@typescript-eslint/no-misused-promises': 'off', // 53 instances
7479
'@typescript-eslint/no-floating-promises': 'off', // 48 instances
7580
'no-async-promise-executor': 'off', // 25 instances
76-
'@typescript-eslint/prefer-promise-reject-errors': 'off', // 19 instances
7781
}
7882
},
7983
{

src/backend/linux/console.ts

-24
This file was deleted.

0 commit comments

Comments
 (0)