From aac5f036523ddff71d5658add75d19fc25182ada Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 3 May 2024 07:56:00 +1200 Subject: [PATCH] refactor(prefer-importing-jest-globals): use `AST_NODE_TYPES` constant instead of string literal (#1576) --- src/rules/prefer-importing-jest-globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/prefer-importing-jest-globals.ts b/src/rules/prefer-importing-jest-globals.ts index 764a465de..9cce2d213 100644 --- a/src/rules/prefer-importing-jest-globals.ts +++ b/src/rules/prefer-importing-jest-globals.ts @@ -67,7 +67,7 @@ export default createRule({ return { ImportDeclaration(node: TSESTree.ImportDeclaration) { node.specifiers.forEach(specifier => { - if (specifier.type === 'ImportSpecifier') { + if (specifier.type === AST_NODE_TYPES.ImportSpecifier) { importedFunctionsWithSource[specifier.local.name] = node.source.value; }