eslint-config-webpack 4.8.4 → 4.9.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.
@@ -289,8 +289,13 @@ async function getTypescriptJSDocRecommendedConfig() {
289
289
  // No need
290
290
  // "jsdoc/text-escaping": "error",
291
291
 
292
- // TODO enable after https://github.com/gajus/eslint-plugin-jsdoc/issues/1615
293
- // "jsdoc/type-formatting": "error",
292
+ "jsdoc/type-formatting": [
293
+ "error",
294
+ {
295
+ objectTypeBracketSpacing: " ",
296
+ objectFieldSeparator: "comma-and-linebreak",
297
+ },
298
+ ],
294
299
 
295
300
  // Doesn't support function overloading/tuples/`readonly`/module keyword/etc
296
301
  // Also `typescript` reports this itself
@@ -14,7 +14,7 @@ class Cache {
14
14
  /**
15
15
  * Get the cached value of the given key.
16
16
  * @param {string} key The key to get.
17
- * @returns {import('type-fest').JsonObject} The cached value or null.
17
+ * @returns {import("type-fest").JsonObject} The cached value or null.
18
18
  */
19
19
  get(key) {
20
20
  const entry = this.map.get(key);
@@ -33,7 +33,7 @@ class Cache {
33
33
  /**
34
34
  * Set the value of the given key.
35
35
  * @param {string} key The key to set.
36
- * @param {import('type-fest').JsonObject} value The value to set.
36
+ * @param {import("type-fest").JsonObject} value The value to set.
37
37
  * @returns {void}
38
38
  */
39
39
  set(key, value) {
@@ -57,7 +57,7 @@ const cache = new Cache();
57
57
  * Don't cache the data.
58
58
  * @param {string} dir The path to a directory to read.
59
59
  * @param {string} filename The filename.
60
- * @returns {import('type-fest').JsonObject|null} The read `package.json` data, or null.
60
+ * @returns {import("type-fest").JsonObject | null} The read `package.json` data, or null.
61
61
  */
62
62
  function readJsonFile(dir, filename) {
63
63
  const filePath = path.join(dir, filename);
@@ -86,7 +86,7 @@ function readJsonFile(dir, filename) {
86
86
  * The data is cached if found, then it's used after.
87
87
  * @param {string} filename The filename.
88
88
  * @param {string=} startPath A file path to lookup.
89
- * @returns {import('type-fest').JsonObject | null} A found `package.json` data or `null`.
89
+ * @returns {import("type-fest").JsonObject | null} A found `package.json` data or `null`.
90
90
  * This object have additional property `filePath`.
91
91
  */
92
92
  function getJsonFile(filename, startPath = "a.js") {
package/configs.js CHANGED
@@ -135,7 +135,9 @@ function getReactConfig() {
135
135
  const devDependencies = packageJson.devDependencies || [];
136
136
 
137
137
  return typeof dependencies.react !== "undefined" ||
138
- typeof devDependencies.react !== "undefined"
138
+ typeof dependencies.preact !== "undefined" ||
139
+ typeof devDependencies.react !== "undefined" ||
140
+ typeof devDependencies.preact !== "undefined"
139
141
  ? configs["react/recommended"]
140
142
  : [];
141
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-webpack",
3
- "version": "4.8.4",
3
+ "version": "4.9.0",
4
4
  "description": "Provides Webpack's eslint rules as an extensible shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -44,7 +44,7 @@
44
44
  "eslint-config-prettier": "^10.1.8",
45
45
  "eslint-plugin-import": "^2.32.0",
46
46
  "eslint-plugin-jest": "^29.12.1",
47
- "eslint-plugin-jsdoc": "^62.0.0",
47
+ "eslint-plugin-jsdoc": "^62.3.0",
48
48
  "eslint-plugin-n": "^17.23.2",
49
49
  "eslint-plugin-prettier": "^5.5.5",
50
50
  "eslint-plugin-react": "^7.37.5",
@@ -54,20 +54,26 @@
54
54
  "jsonc-eslint-parser": "^2.4.2",
55
55
  "semver": "^7.7.3",
56
56
  "sort-package-json": "^3.6.0",
57
- "typescript-eslint": "^8.53.0"
57
+ "typescript-eslint": "^8.53.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "eslint": "^9.39.2",
61
61
  "eslint-find-rules": "^5.0.0",
62
62
  "jest": "^30.2.0",
63
- "prettier": "^3.8.0",
63
+ "prettier": "^3.8.1",
64
64
  "react": "^19.2.3",
65
65
  "react-dom": "^19.2.3",
66
66
  "standard-version": "^9.5.0",
67
67
  "typescript": "^5.9.3"
68
68
  },
69
69
  "peerDependencies": {
70
- "eslint": ">= 9.28.0"
70
+ "eslint": ">= 9.28.0",
71
+ "typescript": ">=4.8.4 <6.0.0"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "typescript": {
75
+ "optional": true
76
+ }
71
77
  },
72
78
  "engines": {
73
79
  "node": ">= 20.9.0"