Skip to content

Commit aac5f03

Browse files
authored
refactor(prefer-importing-jest-globals): use AST_NODE_TYPES constant instead of string literal (#1576)
1 parent df3202f commit aac5f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/prefer-importing-jest-globals.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default createRule({
6767
return {
6868
ImportDeclaration(node: TSESTree.ImportDeclaration) {
6969
node.specifiers.forEach(specifier => {
70-
if (specifier.type === 'ImportSpecifier') {
70+
if (specifier.type === AST_NODE_TYPES.ImportSpecifier) {
7171
importedFunctionsWithSource[specifier.local.name] =
7272
node.source.value;
7373
}

0 commit comments

Comments
 (0)