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:
parent
8bddd6c94a
commit
aaac4883e3
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue