File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -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 ;
You can’t perform that action at this time.
0 commit comments