Skip to content

Commit

Permalink
style: configure prefer-promise-reject-errors rule, remove a bit of d…
Browse files Browse the repository at this point in the history
…ead code
  • Loading branch information
ssimek committed Jan 18, 2025
1 parent d99269c commit d236580
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
6 changes: 5 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export default tseslint.config(

rules: {
'@typescript-eslint/no-base-to-string': 'off', // 1 instance
'@typescript-eslint/prefer-promise-reject-errors': ['error', {
// for catch (e) { reject(e); } scenarios, until promises are refactored
allowThrowingAny: true,
allowThrowingUnknown: true,
}],

'@stylistic/indent-binary-ops': 'off', // this is a weird rule
'@stylistic/max-len': ['error', {
Expand Down Expand Up @@ -73,7 +78,6 @@ export default tseslint.config(
'@typescript-eslint/no-misused-promises': 'off', // 53 instances
'@typescript-eslint/no-floating-promises': 'off', // 48 instances
'no-async-promise-executor': 'off', // 25 instances
'@typescript-eslint/prefer-promise-reject-errors': 'off', // 19 instances
}
},
{
Expand Down
24 changes: 0 additions & 24 deletions src/backend/linux/console.ts

This file was deleted.

0 comments on commit d236580

Please sign in to comment.