Change promise lint rules to error in ts and warn in js
This commit is contained in:
parent
eedd40159c
commit
4a72d84a46
1 changed files with 3 additions and 1 deletions
|
@ -245,7 +245,7 @@ module.exports = {
|
|||
'Windows': 'readonly'
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/no-floating-promises': ['error']
|
||||
'@typescript-eslint/no-floating-promises': ['warn']
|
||||
}
|
||||
},
|
||||
// TypeScript source files
|
||||
|
@ -264,6 +264,8 @@ module.exports = {
|
|||
'plugin:jsx-a11y/recommended'
|
||||
],
|
||||
rules: {
|
||||
'@typescript-eslint/no-floating-promises': ['error'],
|
||||
|
||||
'sonarjs/cognitive-complexity': ['error']
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue