eslint-config-webpack 4.4.2 → 4.5.1
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 +14 -1
- package/configs/stylistic.js +1 -1
- package/package.json +19 -19
package/configs/javascript.js
CHANGED
|
@@ -746,6 +746,9 @@ const unicornRules = {
|
|
|
746
746
|
// No need
|
|
747
747
|
// "unicorn/no-array-reduce": "off",
|
|
748
748
|
|
|
749
|
+
// No need
|
|
750
|
+
// "unicorn/no-array-reverse": "off",
|
|
751
|
+
|
|
749
752
|
// No need
|
|
750
753
|
// "unicorn/no-await-expression-member": "off",
|
|
751
754
|
|
|
@@ -837,6 +840,8 @@ const unicornRules = {
|
|
|
837
840
|
// No need
|
|
838
841
|
// "unicorn/no-unused-properties": "off",
|
|
839
842
|
|
|
843
|
+
"unicorn/no-useless-error-capture-stack-trace": "error",
|
|
844
|
+
|
|
840
845
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
841
846
|
|
|
842
847
|
"unicorn/no-useless-length-check": "error",
|
|
@@ -878,6 +883,8 @@ const unicornRules = {
|
|
|
878
883
|
|
|
879
884
|
"unicorn/prefer-blob-reading-methods": "error",
|
|
880
885
|
|
|
886
|
+
"unicorn/prefer-class-fields": "error",
|
|
887
|
+
|
|
881
888
|
// No need
|
|
882
889
|
// "unicorn/prefer-code-point": "error",
|
|
883
890
|
|
|
@@ -997,6 +1004,8 @@ const unicornRules = {
|
|
|
997
1004
|
// No need
|
|
998
1005
|
// "unicorn/require-array-join-separator": "error",
|
|
999
1006
|
|
|
1007
|
+
"unicorn/require-module-specifiers": "error",
|
|
1008
|
+
|
|
1000
1009
|
// No need
|
|
1001
1010
|
// "unicorn/require-number-to-fixed-digits-argument": "error",
|
|
1002
1011
|
|
|
@@ -1026,7 +1035,8 @@ const importRules = {
|
|
|
1026
1035
|
// No need
|
|
1027
1036
|
// "import/no-deprecated": "off",
|
|
1028
1037
|
|
|
1029
|
-
|
|
1038
|
+
// No need, we have `unicorn/require-module-specifiers`
|
|
1039
|
+
// "import/no-empty-named-blocks": "off",
|
|
1030
1040
|
|
|
1031
1041
|
"import/no-extraneous-dependencies": "error",
|
|
1032
1042
|
|
|
@@ -1235,6 +1245,8 @@ function getConfig(esVersion) {
|
|
|
1235
1245
|
config.rules["prefer-object-spread"] = "off";
|
|
1236
1246
|
}
|
|
1237
1247
|
|
|
1248
|
+
// unicorn/prefer-class-fields
|
|
1249
|
+
|
|
1238
1250
|
if (esVersion < 2019) {
|
|
1239
1251
|
config.rules["unicorn/prefer-object-from-entries"] = "off";
|
|
1240
1252
|
config.rules["unicorn/prefer-array-flat"] = "off";
|
|
@@ -1258,6 +1270,7 @@ function getConfig(esVersion) {
|
|
|
1258
1270
|
config.rules["prefer-object-has-own"] = "off";
|
|
1259
1271
|
config.rules["unicorn/prefer-structured-clone"] = "off";
|
|
1260
1272
|
config.rules["unicorn/prefer-top-level-await"] = "off";
|
|
1273
|
+
config.rules["unicorn/prefer-class-fields"] = "off";
|
|
1261
1274
|
}
|
|
1262
1275
|
|
|
1263
1276
|
return config;
|
package/configs/stylistic.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-webpack",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "Provides Webpack's eslint rules as an extensible shared config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,43 +40,43 @@
|
|
|
40
40
|
"detect-indent": "^7.0.1",
|
|
41
41
|
"jsonc-eslint-parser": "^2.4.0",
|
|
42
42
|
"semver": "^7.7.2",
|
|
43
|
-
"sort-package-json": "^3.
|
|
43
|
+
"sort-package-json": "^3.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint/js": "^9.
|
|
47
|
-
"@eslint/markdown": "^
|
|
48
|
-
"@stylistic/eslint-plugin": "^5.
|
|
49
|
-
"eslint": "^9.
|
|
46
|
+
"@eslint/js": "^9.31.0",
|
|
47
|
+
"@eslint/markdown": "^7.1.0",
|
|
48
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
49
|
+
"eslint": "^9.31.0",
|
|
50
50
|
"eslint-find-rules": "^5.0.0",
|
|
51
51
|
"eslint-plugin-import": "^2.32.0",
|
|
52
52
|
"eslint-plugin-jest": "^29.0.1",
|
|
53
|
-
"eslint-plugin-jsdoc": "^51.
|
|
54
|
-
"eslint-plugin-n": "^17.
|
|
55
|
-
"eslint-plugin-prettier": "^5.5.
|
|
53
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
54
|
+
"eslint-plugin-n": "^17.21.0",
|
|
55
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
56
56
|
"eslint-plugin-react": "^7.37.5",
|
|
57
|
-
"eslint-plugin-unicorn": "^
|
|
58
|
-
"globals": "^16.
|
|
59
|
-
"jest": "^30.0.
|
|
60
|
-
"prettier": "^3.6.
|
|
57
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
58
|
+
"globals": "^16.3.0",
|
|
59
|
+
"jest": "^30.0.5",
|
|
60
|
+
"prettier": "^3.6.2",
|
|
61
61
|
"react": "^19.1.0",
|
|
62
62
|
"react-dom": "^19.1.0",
|
|
63
63
|
"standard-version": "^9.5.0",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
|
-
"typescript-eslint": "^8.
|
|
65
|
+
"typescript-eslint": "^8.38.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@eslint/js": ">= 9.28.0",
|
|
69
|
-
"@eslint/markdown": ">=
|
|
69
|
+
"@eslint/markdown": ">= 7.1.0",
|
|
70
70
|
"@stylistic/eslint-plugin": ">= 4.4.1",
|
|
71
71
|
"eslint": ">= 9.28.0",
|
|
72
|
-
"eslint-config-prettier": "^10.1.
|
|
72
|
+
"eslint-config-prettier": "^10.1.8",
|
|
73
73
|
"eslint-plugin-import": ">= 2.31.0",
|
|
74
74
|
"eslint-plugin-jest": ">= 28.12.0",
|
|
75
75
|
"eslint-plugin-jsdoc": ">= 50.7.1",
|
|
76
76
|
"eslint-plugin-n": ">= 17.19.0",
|
|
77
|
-
"eslint-plugin-prettier": ">= 5.
|
|
77
|
+
"eslint-plugin-prettier": ">= 5.5.3",
|
|
78
78
|
"eslint-plugin-react": ">= 7.37.5",
|
|
79
|
-
"eslint-plugin-unicorn": ">=
|
|
79
|
+
"eslint-plugin-unicorn": ">= 60.0.0",
|
|
80
80
|
"globals": ">= 16.2.0",
|
|
81
81
|
"prettier": ">= 3.5.3",
|
|
82
82
|
"typescript": ">= 5.0.0",
|
|
@@ -106,6 +106,6 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"engines": {
|
|
109
|
-
"node": ">=
|
|
109
|
+
"node": ">= 20.9.0"
|
|
110
110
|
}
|
|
111
111
|
}
|