From 3bed7bbe8d4d2e61567a37e4ec9128100e09d376 Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Fri, 13 Feb 2026 09:30:28 -0800 Subject: [PATCH] Adjust lint rules to avoid unnecessary warning. (#18970) --- packages/vscode-ide-companion/eslint.config.mjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/vscode-ide-companion/eslint.config.mjs b/packages/vscode-ide-companion/eslint.config.mjs index 326e9e142f..19c1cc983a 100644 --- a/packages/vscode-ide-companion/eslint.config.mjs +++ b/packages/vscode-ide-companion/eslint.config.mjs @@ -10,8 +10,6 @@ import tsParser from '@typescript-eslint/parser'; export default [ { files: ['**/*.ts'], - }, - { plugins: { '@typescript-eslint': typescriptEslint, }, @@ -40,6 +38,13 @@ export default [ 'no-throw-literal': 'warn', semi: 'warn', '@typescript-eslint/no-floating-promises': ['error'], + '@typescript-eslint/no-unsafe-type-assertion': 'error', + }, + }, + { + files: ['**/*.test.ts'], + rules: { + '@typescript-eslint/no-unsafe-type-assertion': 'off', }, }, ];