Skip to content

Commit

Permalink
chore: intentionally not use promise/always-return
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 14, 2024
1 parent c74e5d6 commit c4e135c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/test/_intentionally-unused-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export const intentionallyUnusedRules: string[] = [
// Covered by `@typescript-eslint/only-throw-error`
'no-throw-literal',

// Covered by TypeScript
'promise/always-return',

...[
...new TSESLint.Linter({ configType: 'eslintrc' }).getRules().keys(),
].filter((name) => Object.hasOwn(tseslintUsage.rules, name)),
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export const rulesToConsider: Record<string, string[]> = {
'n/prefer-promises/fs',
],
promise: [
'promise/always-return',
'promise/avoid-new',
'promise/catch-or-return',
'promise/no-callback-in-promise',
Expand Down

0 comments on commit c4e135c

Please sign in to comment.