@cspell/eslint-plugin 8.14.4 → 8.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,7 +150,7 @@ export async function spellCheck(filename, text, root, options) {
150
150
  if (!parent)
151
151
  return true;
152
152
  const { imported, local } = parent;
153
- if (imported.name !== local.name)
153
+ if (imported.type === 'Identifier' && imported.name !== local.name)
154
154
  return true;
155
155
  return imported.range?.[0] !== local.range?.[0] && imported.range?.[1] !== local.range?.[1];
156
156
  }
@@ -272,7 +272,8 @@ export async function spellCheck(filename, text, root, options) {
272
272
  }
273
273
  function debugNode(path, value) {
274
274
  log(`${inheritanceSummary(path)}: %o`, value);
275
- debugMode && _dumpNode(path);
275
+ if (debugMode)
276
+ _dumpNode(path);
276
277
  }
277
278
  // console.warn('root: %o', root);
278
279
  walkTree(root, checkNode);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "8.14.4",
6
+ "version": "8.15.0",
7
7
  "description": "CSpell ESLint plugin",
8
8
  "keywords": [
9
9
  "cspell",
@@ -78,37 +78,37 @@
78
78
  },
79
79
  "devDependencies": {
80
80
  "@eslint/eslintrc": "^3.1.0",
81
- "@eslint/js": "^9.10.0",
81
+ "@eslint/js": "^9.12.0",
82
82
  "@internal/cspell-eslint-plugin-scripts": "",
83
83
  "@internal/fixture-test-dictionary": "",
84
84
  "@types/eslint": "^8.56.12",
85
- "@types/estree": "^1.0.5",
86
- "@types/mocha": "^10.0.8",
87
- "@typescript-eslint/parser": "^8.6.0",
88
- "@typescript-eslint/types": "^8.6.0",
89
- "eslint": "^9.10.0",
85
+ "@types/estree": "^1.0.6",
86
+ "@types/mocha": "^10.0.9",
87
+ "@typescript-eslint/parser": "^8.8.1",
88
+ "@typescript-eslint/types": "^8.8.1",
89
+ "eslint": "^9.12.0",
90
90
  "eslint-plugin-jsonc": "^2.16.0",
91
91
  "eslint-plugin-mdx": "^3.1.5",
92
- "eslint-plugin-n": "^17.10.2",
93
- "eslint-plugin-react": "^7.36.1",
92
+ "eslint-plugin-n": "^17.11.1",
93
+ "eslint-plugin-react": "^7.37.1",
94
94
  "eslint-plugin-simple-import-sort": "^12.1.1",
95
95
  "eslint-plugin-yml": "^1.14.0",
96
- "globals": "^15.9.0",
96
+ "globals": "^15.11.0",
97
97
  "jsonc-eslint-parser": "^2.4.0",
98
98
  "mocha": "^10.7.3",
99
99
  "ts-json-schema-generator": "^2.3.0",
100
- "typescript": "~5.5.4",
101
- "typescript-eslint": "^8.6.0",
100
+ "typescript": "~5.6.3",
101
+ "typescript-eslint": "^8.8.1",
102
102
  "yaml-eslint-parser": "^1.2.3"
103
103
  },
104
104
  "dependencies": {
105
- "@cspell/cspell-types": "8.14.4",
106
- "@cspell/url": "8.14.4",
107
- "cspell-lib": "8.14.4",
108
- "synckit": "^0.9.1"
105
+ "@cspell/cspell-types": "8.15.0",
106
+ "@cspell/url": "8.15.0",
107
+ "cspell-lib": "8.15.0",
108
+ "synckit": "^0.9.2"
109
109
  },
110
110
  "peerDependencies": {
111
111
  "eslint": "^7 || ^8 || ^9"
112
112
  },
113
- "gitHead": "aeedd49f6ef20799eed04076093291fcacbc4b84"
113
+ "gitHead": "60b04562dfa023eede01929d86fa944163c07256"
114
114
  }