This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Disallows awaiting a value that is not a Thenable.
5
+ *
6
+ * @see [await-thenable](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md)
7
+ */
8
+ export type AwaitThenableRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Disallows awaiting a value that is not a Thenable.
12
+ *
13
+ * @see [await-thenable](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md)
14
+ */
15
+ export interface AwaitThenableRule {
16
+ /**
17
+ * Disallows awaiting a value that is not a Thenable.
18
+ *
19
+ * @see [await-thenable](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md)
20
+ */
21
+ '@typescript-eslint/await-thenable' : AwaitThenableRuleConfig ;
22
+ }
Original file line number Diff line number Diff line change 1
1
import type { AdjacentOverloadSignaturesRule } from './adjacent-overload-signatures' ;
2
2
import type { ArrayTypeRule } from './array-type' ;
3
+ import type { AwaitThenableRule } from './await-thenable' ;
3
4
import type { BanTsCommentRule } from './ban-ts-comment' ;
4
5
import type { ExplicitFunctionReturnTypeRule } from './explicit-function-return-type' ;
5
6
import type { InterfaceNamePrefixRule } from './interface-name-prefix' ;
@@ -20,6 +21,7 @@ import type { TypedefRule } from './typedef';
20
21
*/
21
22
export type TypeScriptEslintRules = AdjacentOverloadSignaturesRule &
22
23
ArrayTypeRule &
24
+ AwaitThenableRule &
23
25
BanTsCommentRule &
24
26
ExplicitFunctionReturnTypeRule &
25
27
InterfaceNamePrefixRule &
You can’t perform that action at this time.
0 commit comments