From d8231a2227a6c7332f39830a143c81964eff2613 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 27 Jul 2024 12:40:50 +0700 Subject: [PATCH] chore: intentionally not use no-invalid-this --- src/_intentionally-unused-rules.ts | 3 +++ src/test/_rules_to_consider.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_intentionally-unused-rules.ts b/src/_intentionally-unused-rules.ts index 4fd15abe..4e334172 100644 --- a/src/_intentionally-unused-rules.ts +++ b/src/_intentionally-unused-rules.ts @@ -22,4 +22,7 @@ export const intentionallyUnusedRules: string[] = [ // > // > Instead of enabling typedef, it is generally recommended to use the --noImplicitAny and --strictPropertyInitialization compiler options to enforce type annotations only when useful. '@typescript-eslint/typedef', + + // Covered by strict TypeScript + '@typescript-eslint/no-invalid-this', ] diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index e52c17ed..252cdd29 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -1,7 +1,6 @@ export const rulesToConsider = [ '@typescript-eslint/no-empty-object-type', '@typescript-eslint/no-inferrable-types', - '@typescript-eslint/no-invalid-this', '@typescript-eslint/no-loop-func', '@typescript-eslint/no-magic-numbers', '@typescript-eslint/no-meaningless-void-operator',