From c65c9a8f1e73dca52cffb2422b44b3662ccb5bf4 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 11 Jan 2025 15:05:57 +0700 Subject: [PATCH] chore: intentionally no use max-lines-per-function max-statements --- src/test/_intentionally-unused-rules.ts | 4 ++++ src/test/_rules_to_consider.ts | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/_intentionally-unused-rules.ts b/src/test/_intentionally-unused-rules.ts index 3b8b57d2..28b9554d 100644 --- a/src/test/_intentionally-unused-rules.ts +++ b/src/test/_intentionally-unused-rules.ts @@ -79,6 +79,10 @@ export const intentionallyUnusedRules: string[] = [ // Covered by `@typescript-eslint/no-floating-promises` 'promise/catch-or-return', + // Covered by `complexity` + 'max-lines-per-function', + 'max-statements', + ...[ ...new TSESLint.Linter({ configType: 'eslintrc' }).getRules().keys(), ].filter((name) => Object.hasOwn(tseslintUsage.rules, name)), diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index 9541e12a..ea6211ea 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -1,8 +1,6 @@ export const rulesToConsider: Record = { 'eslint-comments': [], '': [ - 'max-lines-per-function', - 'max-statements', 'no-alert', 'no-await-in-loop', 'no-console',