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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-webpack",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Provides Webpack's eslint rules as an extensible shared config",
5
5
  "keywords": [
6
6
  "eslint",