Skip to content

Commit

Permalink
refactor(prefer-importing-jest-globals): use AST_NODE_TYPES constan…
Browse files Browse the repository at this point in the history
…t instead of string literal (#1576)
  • Loading branch information
G-Rath authored May 2, 2024
1 parent df3202f commit aac5f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/prefer-importing-jest-globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aac5f03

Please sign in to comment.