Add floating promises eslint rule
This commit is contained in:
parent
8bddd6c94a
commit
aaac4883e3
1 changed files with 6 additions and 0 deletions
|
@ -203,6 +203,9 @@ module.exports = {
|
||||||
'./src/**/*.ts',
|
'./src/**/*.ts',
|
||||||
'./src/**/*.tsx'
|
'./src/**/*.tsx'
|
||||||
],
|
],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.json']
|
||||||
|
},
|
||||||
env: {
|
env: {
|
||||||
node: false,
|
node: false,
|
||||||
amd: true,
|
amd: true,
|
||||||
|
@ -240,6 +243,9 @@ module.exports = {
|
||||||
'TaskButton': 'writable',
|
'TaskButton': 'writable',
|
||||||
'UserParentalControlPage': 'writable',
|
'UserParentalControlPage': 'writable',
|
||||||
'Windows': 'readonly'
|
'Windows': 'readonly'
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/no-floating-promises': ['error']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// TypeScript source files
|
// TypeScript source files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue