File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default createRule({
39
39
pipe (
40
40
pureDataPrefixes ,
41
41
array . some ( ( prefix ) =>
42
- t . symbol . escapedName . toString ( ) . startsWith ( prefix )
42
+ t . symbol ? .escapedName . toString ( ) . startsWith ( prefix )
43
43
)
44
44
)
45
45
) ;
Original file line number Diff line number Diff line change @@ -399,7 +399,11 @@ export const contextUtils = <
399
399
}
400
400
401
401
function parserServices ( ) : Option < ParserServices > {
402
- return pipe ( context . parserServices , option . fromNullable ) ;
402
+ return pipe (
403
+ context . parserServices ,
404
+ option . fromNullable ,
405
+ option . filter ( ( parserServices ) => parserServices . hasFullTypeInformation )
406
+ ) ;
403
407
}
404
408
405
409
function typeOfNode ( node : TSESTree . Node ) : Option < ts . Type > {
You can’t perform that action at this time.
0 commit comments