diff --git a/eslint.config.mjs b/eslint.config.mjs index 20a351df..00573df0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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', diff --git a/src/components/documentManager.ts b/src/components/documentManager.ts index 32f3ed87..f3df9d60 100644 --- a/src/components/documentManager.ts +++ b/src/components/documentManager.ts @@ -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'); } }