1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

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/**/*.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