We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2af4d5 commit 057f5f3Copy full SHA for 057f5f3
packages/eslint-config-react/typescript.js
@@ -8,6 +8,15 @@ module.exports = {
8
],
9
plugins: ['@typescript-eslint'],
10
rules: {
11
+ // https://github.com/typescript-eslint/typescript-eslint/issues/4619
12
+ '@typescript-eslint/no-misused-promises': [
13
+ 'error',
14
+ {
15
+ checksVoidReturn: {
16
+ attributes: false,
17
+ },
18
19
+ ],
20
'@typescript-eslint/no-unused-vars': ['error'],
21
// We favor object defaults instead of default props in TS
22
// https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/default_props/#you-may-not-need-defaultprops
0 commit comments