Skip to content

Commit b618050

Browse files
committed
[Resistor Duo analyzer] Undo change to TSESTree import
1 parent 5d5076c commit b618050

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/analyzers/practice/resistor-color-duo/ResistorColorDuoSolution.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import {
2121
SpecificObjectPropertyCall,
2222
SpecificPropertyCall,
2323
} from '@exercism/static-analysis'
24-
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/typescript-estree'
24+
import type { TSESTree } from '@typescript-eslint/typescript-estree'
25+
import { AST_NODE_TYPES } from '@typescript-eslint/typescript-estree'
2526
import { Source } from '~src/analyzers/SourceImpl'
2627
import { parameterName } from '~src/analyzers/utils/extract_parameter'
2728
import { assertNamedExport } from '~src/asserts/assert_named_export'
@@ -1131,8 +1132,8 @@ class Entry {
11311132
| undefined {
11321133
const localConstants = extractVariables(this.body).filter(
11331134
(constant) =>
1134-
constant.init?.type === TSESTree.AST_NODE_TYPES.ArrayExpression ||
1135-
constant.init?.type === TSESTree.AST_NODE_TYPES.ObjectExpression
1135+
constant.init?.type === AST_NODE_TYPES.ArrayExpression ||
1136+
constant.init?.type === AST_NODE_TYPES.ObjectExpression
11361137
)
11371138
if (localConstants.length) {
11381139
const nameOfFirstConstant = localConstants[0].name || 'COLORS'

0 commit comments

Comments
 (0)