Commit 38759cf 1 parent 3345ea7 commit 38759cf Copy full SHA for 38759cf
File tree 3 files changed +277
-109
lines changed
packages/cspell-eslint-plugin
3 files changed +277
-109
lines changed Original file line number Diff line number Diff line change 78
78
},
79
79
"devDependencies" : {
80
80
"@eslint/eslintrc" : " ^3.1.0" ,
81
- "@eslint/js" : " ^9.10 .0" ,
81
+ "@eslint/js" : " ^9.11 .0" ,
82
82
"@internal/cspell-eslint-plugin-scripts" : " workspace:*" ,
83
83
"@internal/fixture-test-dictionary" : " workspace:*" ,
84
84
"@types/eslint" : " ^8.56.12" ,
85
- "@types/estree" : " ^1.0.5 " ,
85
+ "@types/estree" : " ^1.0.6 " ,
86
86
"@types/mocha" : " ^10.0.8" ,
87
87
"@typescript-eslint/parser" : " ^8.6.0" ,
88
88
"@typescript-eslint/types" : " ^8.6.0" ,
89
- "eslint" : " ^9.10 .0" ,
89
+ "eslint" : " ^9.11 .0" ,
90
90
"eslint-plugin-jsonc" : " ^2.16.0" ,
91
91
"eslint-plugin-mdx" : " ^3.1.5" ,
92
92
"eslint-plugin-n" : " ^17.10.3" ,
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export async function spellCheck(
179
179
const parent = getImportParent ( node ) ;
180
180
if ( ! parent ) return true ;
181
181
const { imported, local } = parent ;
182
- if ( imported . name !== local . name ) return true ;
182
+ if ( imported . type === 'Identifier' && imported . name !== local . name ) return true ;
183
183
return imported . range ?. [ 0 ] !== local . range ?. [ 0 ] && imported . range ?. [ 1 ] !== local . range ?. [ 1 ] ;
184
184
}
185
185
@@ -316,7 +316,7 @@ export async function spellCheck(
316
316
317
317
function debugNode ( path : ASTPath , value : unknown ) {
318
318
log ( `${ inheritanceSummary ( path ) } : %o` , value ) ;
319
- debugMode && _dumpNode ( path ) ;
319
+ if ( debugMode ) _dumpNode ( path ) ;
320
320
}
321
321
322
322
// console.warn('root: %o', root);
You can’t perform that action at this time.
0 commit comments