File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -89,19 +89,18 @@ module.exports = {
8989 variable &&
9090 variable . references . some ( ( ref ) => ref . identifier === node ) &&
9191 variable . defs . length > 0 &&
92- variable . defs . every ( ( def ) => {
93- if ( def . type === 'ImportBinding' ) return false
94- if ( ! utils . inRange ( scriptSetup . range , def . name ) ) return false
95- if ( utils . inRange ( defineOptions . range , def . name ) ) return false
96- if (
97- def . type === 'Variable' &&
98- def . parent . kind === 'const' &&
99- def . node . init &&
100- def . node . init . type === 'Literal'
101- )
102- return false
103- return true
104- } )
92+ variable . defs . every (
93+ ( def ) =>
94+ def . type !== 'ImportBinding' &&
95+ utils . inRange ( scriptSetup . range , def . name ) &&
96+ ! utils . inRange ( defineOptions . range , def . name ) &&
97+ ! (
98+ def . type === 'Variable' &&
99+ def . parent . kind === 'const' &&
100+ def . node . init &&
101+ def . node . init . type === 'Literal'
102+ )
103+ )
105104 ) {
106105 if ( utils . withinTypeNode ( node ) ) {
107106 continue
You can’t perform that action at this time.
0 commit comments