File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
- ESLintUtils ,
3
2
TSESTree ,
4
3
ASTUtils ,
5
4
} from '@typescript-eslint/experimental-utils' ;
6
- import { getDocsUrl , LIBRARY_MODULES } from '../utils' ;
5
+ import { LIBRARY_MODULES } from '../utils' ;
7
6
import {
7
+ getVariableReferences ,
8
+ isAwaited ,
8
9
isCallExpression ,
9
10
isMemberExpression ,
10
- isAwaited ,
11
11
isPromiseResolved ,
12
- getVariableReferences ,
13
12
} from '../node-utils' ;
14
13
import { ReportDescriptor } from '@typescript-eslint/experimental-utils/dist/ts-eslint' ;
14
+ import { createTestingLibraryRule } from '../create-testing-library-rule' ;
15
15
16
16
export const RULE_NAME = 'await-async-query' ;
17
17
export type MessageIds = 'awaitAsyncQuery' ;
@@ -40,7 +40,7 @@ function hasClosestExpectResolvesRejects(node: TSESTree.Node): boolean {
40
40
}
41
41
}
42
42
43
- export default ESLintUtils . RuleCreator ( getDocsUrl ) < Options , MessageIds > ( {
43
+ export default createTestingLibraryRule < Options , MessageIds > ( {
44
44
name : RULE_NAME ,
45
45
meta : {
46
46
type : 'problem' ,
You can’t perform that action at this time.
0 commit comments