Skip to content

Commit

Permalink
chore: intentionally not use consistent-return
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jul 13, 2024
1 parent 9ae1216 commit dd07dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/_intentionally-unused-rules.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export const intentionallyUnusedRules: string[] = []
export const intentionallyUnusedRules: string[] = [
// From rule documentation:
// > If possible, it is recommended to use tsconfig's noImplicitReturns option rather than this rule. noImplicitReturns is powered by TS's type information and control-flow analysis so it has better coverage than this rule.
'@typescript-eslint/consistent-return',
'consistent-return',
]
2 changes: 0 additions & 2 deletions src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const rulesToConsider = [
'@typescript-eslint/consistent-return',
'@typescript-eslint/default-param-last',
'@typescript-eslint/explicit-member-accessibility',
'@typescript-eslint/explicit-module-boundary-types',
Expand Down Expand Up @@ -70,7 +69,6 @@ export const rulesToConsider = [
'camelcase',
'capitalized-comments',
'complexity',
'consistent-return',
'consistent-this',
'default-case',
'default-param-last',
Expand Down

0 comments on commit dd07dfc

Please sign in to comment.