@cspell/eslint-plugin 7.3.8 → 8.0.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.
@@ -9,12 +9,14 @@ const path_1 = __importDefault(require("path"));
9
9
  const util_1 = require("util");
10
10
  const debugMode = false;
11
11
  class Logger {
12
+ options;
13
+ logFile;
14
+ cwd;
15
+ logToFile = true;
16
+ enabled = true;
17
+ useAsync = false;
12
18
  constructor(options) {
13
19
  this.options = options;
14
- this.logToFile = true;
15
- this.enabled = true;
16
- this.useAsync = false;
17
- this.log = this._log.bind(this);
18
20
  this.cwd = path_1.default.resolve(options.cwd || '.');
19
21
  const logFileBasename = options.logFile || '.cspell-eslint-plugin.log';
20
22
  this.logFile = path_1.default.resolve(this.cwd, logFileBasename);
@@ -33,6 +35,7 @@ class Logger {
33
35
  : fs_1.default.appendFileSync(this.logFile, message);
34
36
  return;
35
37
  }
38
+ log = this._log.bind(this);
36
39
  }
37
40
  exports.Logger = Logger;
38
41
  let logger;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "7.3.8",
6
+ "version": "8.0.0",
7
7
  "description": "CSpell ESLint plugin",
8
8
  "keywords": [
9
9
  "cspell",
@@ -56,27 +56,27 @@
56
56
  "url": "https://github.com/streetsidesoftware/cspell/labels/cspell-gitignore"
57
57
  },
58
58
  "engines": {
59
- "node": ">=16"
59
+ "node": ">=18"
60
60
  },
61
61
  "devDependencies": {
62
- "@types/eslint": "^8.44.4",
63
- "@types/estree": "^1.0.2",
64
- "@types/mocha": "^10.0.2",
65
- "@typescript-eslint/eslint-plugin": "^6.7.5",
66
- "@typescript-eslint/parser": "^6.7.5",
67
- "@typescript-eslint/types": "^6.7.5",
68
- "@typescript-eslint/typescript-estree": "^6.7.5",
69
- "eslint": "^8.51.0",
62
+ "@types/eslint": "^8.44.7",
63
+ "@types/estree": "^1.0.5",
64
+ "@types/mocha": "^10.0.4",
65
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
66
+ "@typescript-eslint/parser": "^6.10.0",
67
+ "@typescript-eslint/types": "^6.10.0",
68
+ "@typescript-eslint/typescript-estree": "^6.10.0",
69
+ "eslint": "^8.53.0",
70
70
  "eslint-plugin-react": "^7.33.2",
71
71
  "mocha": "^10.2.0",
72
- "ts-json-schema-generator": "^1.3.0",
72
+ "ts-json-schema-generator": "^1.4.0",
73
73
  "typescript": "^5.2.2"
74
74
  },
75
75
  "dependencies": {
76
- "@cspell/cspell-types": "7.3.8",
77
- "cspell-lib": "7.3.8",
76
+ "@cspell/cspell-types": "8.0.0",
77
+ "cspell-lib": "8.0.0",
78
78
  "estree-walker": "^3.0.3",
79
79
  "synckit": "^0.8.5"
80
80
  },
81
- "gitHead": "6717f5726b74c695d9023dbccf6f7e8a7ac6361f"
81
+ "gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370"
82
82
  }