mirror of
https://github.com/jellyfin/jellyfin-chromecast.git
synced 2024-11-27 00:00:28 +00:00
Enable no-unnecessary-type-assertion ts eslint rule
This commit is contained in:
parent
6ac3432d27
commit
9f9c456433
@ -59,6 +59,7 @@ export default [
|
||||
rules: {
|
||||
'@typescript-eslint/explicit-function-return-type': 'error',
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unused-expressions': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
||||
|
@ -581,9 +581,9 @@ export abstract class DocumentManager {
|
||||
const element = this.querySelector('.detailImageProgressContainer');
|
||||
|
||||
if (value) {
|
||||
(element as HTMLElement).classList.remove('d-none');
|
||||
element.classList.remove('d-none');
|
||||
} else {
|
||||
(element as HTMLElement).classList.add('d-none');
|
||||
element.classList.add('d-none');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user