eslint-config-webpack 4.8.3 → 4.8.5
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/configs/javascript.js +1 -1
- package/configs/markdown.js +3 -1
- package/configs/node.js +7 -5
- package/package.json +8 -2
package/configs/javascript.js
CHANGED
|
@@ -1016,7 +1016,7 @@ const unicornRules = {
|
|
|
1016
1016
|
// No need
|
|
1017
1017
|
// "unicorn/prevent-abbreviations": "error",
|
|
1018
1018
|
|
|
1019
|
-
"unicorn/relative-url-style": "error",
|
|
1019
|
+
"unicorn/relative-url-style": ["error", "always"],
|
|
1020
1020
|
|
|
1021
1021
|
// No need
|
|
1022
1022
|
// "unicorn/require-array-join-separator": "error",
|
package/configs/markdown.js
CHANGED
|
@@ -38,6 +38,8 @@ async function getMarkdownRecommendedConfig() {
|
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
rules: {
|
|
41
|
+
"id-length": "off",
|
|
42
|
+
|
|
41
43
|
strict: "off",
|
|
42
44
|
|
|
43
45
|
// For different examples
|
|
@@ -70,7 +72,7 @@ async function getMarkdownRecommendedConfig() {
|
|
|
70
72
|
"n/no-unpublished-import": "off",
|
|
71
73
|
|
|
72
74
|
// Allow to use any ES builtins in documentation
|
|
73
|
-
"
|
|
75
|
+
"n/no-unsupported-features/es-builtins": "off",
|
|
74
76
|
|
|
75
77
|
// Allow to use any ES syntax in documentation
|
|
76
78
|
"n/no-unsupported-features/es-syntax": "off",
|
package/configs/node.js
CHANGED
|
@@ -277,13 +277,15 @@ async function getDirtyConfig() {
|
|
|
277
277
|
|
|
278
278
|
const dirtyConfig = await getDirtyConfig();
|
|
279
279
|
|
|
280
|
-
const jsExtensions = isTypescriptInstalled()
|
|
280
|
+
const jsExtensions = isTypescriptInstalled()
|
|
281
|
+
? ["*.{js,ts}", "**/*.{js,ts}"]
|
|
282
|
+
: ["**/*.js"];
|
|
281
283
|
const cjsExtensions = isTypescriptInstalled()
|
|
282
|
-
? ["**/*.{cjs,cts}"]
|
|
283
|
-
: ["**/*.
|
|
284
|
+
? ["*.{cjs,cts}", "**/*.{cjs,cts}"]
|
|
285
|
+
: ["**/*.cjs"];
|
|
284
286
|
const mjsExtensions = isTypescriptInstalled()
|
|
285
|
-
? ["**/*.{mjs,jsx,mts,tsx}"]
|
|
286
|
-
: ["**/*.{mjs,jsx}"];
|
|
287
|
+
? ["*.{mjs,jsx,mts,tsx}", "**/*.{mjs,jsx,mts,tsx}"]
|
|
288
|
+
: ["*.{mjs,jsx}", "**/*.{mjs,jsx}"];
|
|
287
289
|
|
|
288
290
|
export default {
|
|
289
291
|
"node/dirty": dirtyConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-webpack",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.5",
|
|
4
4
|
"description": "Provides Webpack's eslint rules as an extensible shared config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -67,7 +67,13 @@
|
|
|
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"
|