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

Change promise lint rules to error in ts and warn in js

This commit is contained in:
Bill Thornton 2023-05-04 16:04:09 -04:00
parent eedd40159c
commit 4a72d84a46

View file

@ -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']
}
}