Skip to content

Commit 48797d7

Browse files
committed
loosen misused promises
1 parent 43e0cfe commit 48797d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ const tseslintOverrides: ConfigLike = {
121121
'@typescript-eslint/no-unsafe-return': 'warn',
122122

123123
'@typescript-eslint/unbound-method': ['error', {ignoreStatic: true}],
124+
'@typescript-eslint/no-misused-promises': ['warn', {checksVoidReturn: {attributes: false}}],
124125

125126
'@typescript-eslint/prefer-nullish-coalescing': 'off',
126127
'@typescript-eslint/explicit-function-return-type': 'off',
@@ -212,6 +213,7 @@ const externalPluginRuleOverrides: ConfigLike = {
212213
'unicorn/consistent-destructuring': 'off',
213214
'unicorn/no-await-expression-member': 'off',
214215
'unicorn/explicit-length-check': 'off', // why should i
216+
'unicorn/prefer-type-error': 'off', // sindre doesn't know when my typeof x === 'string' checks actually mean something is a type error
215217

216218
'react/react-in-jsx-scope': 'off',
217219
'react/prop-types': 'off',

0 commit comments

Comments
 (0)