File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/analyzers/practice/resistor-color-duo Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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'
2526import { Source } from '~src/analyzers/SourceImpl'
2627import { parameterName } from '~src/analyzers/utils/extract_parameter'
2728import { 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'
You can’t perform that action at this time.
0 commit comments