Skip to content

Commit

Permalink
Merge pull request #1028 from standard/await-thenable
Browse files Browse the repository at this point in the history
feat: add @typescript-eslint/await-thenable
  • Loading branch information
mightyiam committed Jan 12, 2023
2 parents 6c0f09a + 7dad1a9 commit 63f48b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ test('export', (t): void => {
'space-infix-ops': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@typescript-eslint/comma-dangle': ['error', {
arrays: 'never',
Expand Down Expand Up @@ -362,7 +363,6 @@ test('all plugin rules are considered', (t) => {
// This serves as a todo list and should ideally eventually end up empty
// and then fail upon plugin upgrades where new rules are released.
const notYetConsideredRules: string[] = [
'await-thenable',
'ban-ts-comment',
'ban-tslint-comment',
'ban-types',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const config: Linter.Config = {
// Rules exclusive to Standard TypeScript:
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/comma-dangle': ['error', {
arrays: 'never',
objects: 'never',
Expand Down

0 comments on commit 63f48b0

Please sign in to comment.