Add floating promises eslint rule

This commit is contained in:
Bill Thornton 2023-05-02 11:24:36 -04:00
parent 8bddd6c94a
commit aaac4883e3

View file

@ -203,6 +203,9 @@ module.exports = {
'./src/**/*.ts',
'./src/**/*.tsx'
],
parserOptions: {
project: ['./tsconfig.json']
},
env: {
node: false,
amd: true,
@ -240,6 +243,9 @@ module.exports = {
'TaskButton': 'writable',
'UserParentalControlPage': 'writable',
'Windows': 'readonly'
},
rules: {
'@typescript-eslint/no-floating-promises': ['error']
}
},
// TypeScript source files