Skip to content

Commit

Permalink
feat!: max-lines at 450
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 21, 2024
1 parent a891baf commit 76a649a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/plugin-usage/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ const usage: PluginUsage = {
],
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus one
'max-depth': ['error', { max: 5 }],
'max-lines': [
'error',
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus 150
{ max: 450, skipBlankLines: true, skipComments: true },
],
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
'no-async-promise-executor': ['error'],
'no-caller': ['error'],
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const rulesToConsider: Record<string, string[]> = {
'eslint-comments': [],
'': [
'max-lines',
'max-lines-per-function',
'max-nested-callbacks',
'max-statements',
Expand Down
5 changes: 5 additions & 0 deletions src/test/expected-exported-value/_eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ export const expectedEslintRules: Record<
],
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus one
'max-depth': ['error', { max: 5 }],
'max-lines': [
'error',
// eslint-disable-next-line @typescript-eslint/no-magic-numbers -- default plus 150
{ max: 450, skipBlankLines: true, skipComments: true },
],
'new-cap': ['error', { newIsCap: true, capIsNew: false, properties: true }],
'no-async-promise-executor': ['error'],
'no-caller': ['error'],
Expand Down

0 comments on commit 76a649a

Please sign in to comment.