From 236c8df5ae738dda870be94ea584a21b3dc13d6f Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 3 Oct 2025 09:36:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(eslint)=20add=20no-unnecessary-typ?= =?UTF-8?q?e-assertion=20lint=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add no-unnecessary-type-assertion rule to eslint config to avoid automatically unnecessary type assertions in the codebase. --- src/frontend/packages/eslint-plugin-docs/typescript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/packages/eslint-plugin-docs/typescript.js b/src/frontend/packages/eslint-plugin-docs/typescript.js index 5a398a78..7d98f9f7 100644 --- a/src/frontend/packages/eslint-plugin-docs/typescript.js +++ b/src/frontend/packages/eslint-plugin-docs/typescript.js @@ -24,6 +24,7 @@ const typescriptConfig = { rules: { '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-non-null-assertion': 'error', + '@typescript-eslint/no-unnecessary-type-assertion': 'error', '@typescript-eslint/no-unsafe-argument': 'error', '@typescript-eslint/no-unsafe-member-access': 'error', '@typescript-eslint/no-unused-vars': [