Skip to content

Commit

Permalink
chore: intentionally no use max-lines-per-function max-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jan 11, 2025
1 parent 4e4f7fa commit c65c9a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/test/_intentionally-unused-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
2 changes: 0 additions & 2 deletions src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export const rulesToConsider: Record<string, string[]> = {
'eslint-comments': [],
'': [
'max-lines-per-function',
'max-statements',
'no-alert',
'no-await-in-loop',
'no-console',
Expand Down

0 comments on commit c65c9a8

Please sign in to comment.