eslint-config-webpack 4.5.0 → 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 +3 -1
- package/package.json +1 -1
package/configs/javascript.js
CHANGED
|
@@ -883,7 +883,6 @@ const unicornRules = {
|
|
|
883
883
|
|
|
884
884
|
"unicorn/prefer-blob-reading-methods": "error",
|
|
885
885
|
|
|
886
|
-
// TODO enable in future
|
|
887
886
|
"unicorn/prefer-class-fields": "error",
|
|
888
887
|
|
|
889
888
|
// No need
|
|
@@ -1246,6 +1245,8 @@ function getConfig(esVersion) {
|
|
|
1246
1245
|
config.rules["prefer-object-spread"] = "off";
|
|
1247
1246
|
}
|
|
1248
1247
|
|
|
1248
|
+
// unicorn/prefer-class-fields
|
|
1249
|
+
|
|
1249
1250
|
if (esVersion < 2019) {
|
|
1250
1251
|
config.rules["unicorn/prefer-object-from-entries"] = "off";
|
|
1251
1252
|
config.rules["unicorn/prefer-array-flat"] = "off";
|
|
@@ -1269,6 +1270,7 @@ function getConfig(esVersion) {
|
|
|
1269
1270
|
config.rules["prefer-object-has-own"] = "off";
|
|
1270
1271
|
config.rules["unicorn/prefer-structured-clone"] = "off";
|
|
1271
1272
|
config.rules["unicorn/prefer-top-level-await"] = "off";
|
|
1273
|
+
config.rules["unicorn/prefer-class-fields"] = "off";
|
|
1272
1274
|
}
|
|
1273
1275
|
|
|
1274
1276
|
return config;
|