We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a789420 commit 0660242Copy full SHA for 0660242
src/rules/prefer-importing-jest-globals.ts
@@ -60,19 +60,10 @@ export default createRule({
60
defaultOptions: [{ types: allJestFnTypes }],
61
create(context) {
62
const { types = allJestFnTypes } = context.options[0] || {};
63
- const importedFunctionsWithSource: Record<string, string> = {};
64
const functionsToImport = new Set<string>();
65
let reportingNode: TSESTree.Node;
66
67
return {
68
- ImportDeclaration(node: TSESTree.ImportDeclaration) {
69
- node.specifiers.forEach(specifier => {
70
- if (specifier.type === AST_NODE_TYPES.ImportSpecifier) {
71
- importedFunctionsWithSource[specifier.local.name] =
72
- node.source.value;
73
- }
74
- });
75
- },
76
CallExpression(node: TSESTree.CallExpression) {
77
const jestFnCall = parseJestFnCall(node, context);
78
0 commit comments