Skip to content

Commit 38759cf

Browse files
authored
chore: Update @types/estree (#6270)
1 parent 3345ea7 commit 38759cf

File tree

3 files changed

+277
-109
lines changed

3 files changed

+277
-109
lines changed

packages/cspell-eslint-plugin/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@
7878
},
7979
"devDependencies": {
8080
"@eslint/eslintrc": "^3.1.0",
81-
"@eslint/js": "^9.10.0",
81+
"@eslint/js": "^9.11.0",
8282
"@internal/cspell-eslint-plugin-scripts": "workspace:*",
8383
"@internal/fixture-test-dictionary": "workspace:*",
8484
"@types/eslint": "^8.56.12",
85-
"@types/estree": "^1.0.5",
85+
"@types/estree": "^1.0.6",
8686
"@types/mocha": "^10.0.8",
8787
"@typescript-eslint/parser": "^8.6.0",
8888
"@typescript-eslint/types": "^8.6.0",
89-
"eslint": "^9.10.0",
89+
"eslint": "^9.11.0",
9090
"eslint-plugin-jsonc": "^2.16.0",
9191
"eslint-plugin-mdx": "^3.1.5",
9292
"eslint-plugin-n": "^17.10.3",

packages/cspell-eslint-plugin/src/worker/spellCheck.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export async function spellCheck(
179179
const parent = getImportParent(node);
180180
if (!parent) return true;
181181
const { imported, local } = parent;
182-
if (imported.name !== local.name) return true;
182+
if (imported.type === 'Identifier' && imported.name !== local.name) return true;
183183
return imported.range?.[0] !== local.range?.[0] && imported.range?.[1] !== local.range?.[1];
184184
}
185185

@@ -316,7 +316,7 @@ export async function spellCheck(
316316

317317
function debugNode(path: ASTPath, value: unknown) {
318318
log(`${inheritanceSummary(path)}: %o`, value);
319-
debugMode && _dumpNode(path);
319+
if (debugMode) _dumpNode(path);
320320
}
321321

322322
// console.warn('root: %o', root);

0 commit comments

Comments
 (0)