@cspell/eslint-plugin 8.8.0 → 8.8.2

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.
package/README.md CHANGED
@@ -326,11 +326,7 @@ The maintainers of cspell and thousands of other packages are working with Tidel
326
326
 
327
327
  ---
328
328
 
329
- <p align="center">
330
- Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
331
- <img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
332
- </a>
333
- </p>
329
+ <p align="center">Brought to you by<a href="https://streetsidesoftware.com" title="Street Side Software"><img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software</a></p>
334
330
 
335
331
  <!--- @@inject-end: ../../static/footer.md --->
336
332
 
@@ -9,6 +9,7 @@ const logger_cjs_1 = require("../common/logger.cjs");
9
9
  const defaultCheckOptions_cjs_1 = require("./defaultCheckOptions.cjs");
10
10
  const optionsSchema = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '../../assets/options.schema.json'), 'utf8'));
11
11
  const schema = optionsSchema;
12
+ // eslint-disable-next-line n/no-missing-require
12
13
  const spellCheck = (0, synckit_1.createSyncFn)(require.resolve('../worker/worker.mjs'), 30_000);
13
14
  const messages = {
14
15
  wordUnknown: 'Unknown word: "{{word}}"',
@@ -399,7 +399,7 @@ async function reportConfigurationErrors(config, knownConfigErrors) {
399
399
  if (knownConfigErrors.has(key))
400
400
  return;
401
401
  knownConfigErrors.add(key);
402
- errors.push(Error('Configuration Error: \n ' + ref.error.message));
402
+ errors.push(new Error('Configuration Error: \n ' + ref.error.message));
403
403
  });
404
404
  const dictCollection = await getDictionary(config);
405
405
  dictCollection.dictionaries.forEach((dict) => {
@@ -411,7 +411,7 @@ async function reportConfigurationErrors(config, knownConfigErrors) {
411
411
  return;
412
412
  knownConfigErrors.add(key);
413
413
  const errMsg = `${msg}: ${error.message}\n Source: ${dict.source}`;
414
- errors.push(Error(errMsg));
414
+ errors.push(new Error(errMsg));
415
415
  });
416
416
  });
417
417
  return errors;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "8.8.0",
6
+ "version": "8.8.2",
7
7
  "description": "CSpell ESLint plugin",
8
8
  "keywords": [
9
9
  "cspell",
@@ -53,9 +53,9 @@
53
53
  "scripts": {
54
54
  "bt": "pnpm build && pnpm test",
55
55
  "build": "pnpm build:schema && pnpm build:src",
56
- "build:src": "tsc -b ./tsconfig.json",
56
+ "build:src": "tsc -b ./tsconfig.json -f",
57
57
  "build:schema": "ts-json-schema-generator --no-top-ref --expose none --path src/common/options.cts --type Options -o ./assets/options.schema.json",
58
- "watch": "tsc -b ./tsconfig.json --watch",
58
+ "watch": "tsc -b ./tsconfig.json --watch -f",
59
59
  "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
60
60
  "clean-build": "pnpm run clean && pnpm run build",
61
61
  "coverage": "echo coverage",
@@ -74,30 +74,30 @@
74
74
  "node": ">=18"
75
75
  },
76
76
  "devDependencies": {
77
- "@eslint/eslintrc": "^3.0.2",
78
- "@eslint/js": "^9.1.1",
77
+ "@eslint/eslintrc": "^3.1.0",
78
+ "@eslint/js": "^9.3.0",
79
79
  "@types/estree": "^1.0.5",
80
80
  "@types/mocha": "^10.0.6",
81
- "@typescript-eslint/parser": "^7.8.0",
82
- "@typescript-eslint/types": "^7.8.0",
83
- "eslint": "^9.1.1",
84
- "eslint-plugin-n": "^17.4.0",
81
+ "@typescript-eslint/parser": "^7.10.0",
82
+ "@typescript-eslint/types": "^7.10.0",
83
+ "eslint": "^9.3.0",
84
+ "eslint-plugin-n": "^17.7.0",
85
85
  "eslint-plugin-react": "^7.34.1",
86
86
  "eslint-plugin-simple-import-sort": "^12.1.0",
87
- "globals": "^15.1.0",
87
+ "globals": "^15.3.0",
88
88
  "mocha": "^10.4.0",
89
89
  "ts-json-schema-generator": "^2.1.1",
90
90
  "typescript": "^5.4.5",
91
- "typescript-eslint": "^7.8.0"
91
+ "typescript-eslint": "^7.10.0"
92
92
  },
93
93
  "dependencies": {
94
- "@cspell/cspell-types": "8.8.0",
95
- "cspell-lib": "8.8.0",
94
+ "@cspell/cspell-types": "8.8.2",
95
+ "cspell-lib": "8.8.2",
96
96
  "estree-walker": "^3.0.3",
97
97
  "synckit": "^0.9.0"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "eslint": "^7 || ^8 || ^9"
101
101
  },
102
- "gitHead": "a42bce675c00cb2d51809b3ae3894119ea4f5ce7"
102
+ "gitHead": "e82ec807677c040c38b7d5608c8a8d42185d3b24"
103
103
  }