Skip to content

Commit bb28a00

Browse files
fix: disable unicorn/prefer-object-from-entries for old es versions (#78)
1 parent 5306b6d commit bb28a00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configs/javascript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ function getConfig(esVersion) {
12361236
}
12371237

12381238
if (esVersion < 2019) {
1239+
config.rules["unicorn/prefer-object-from-entries"] = "off";
12391240
config.rules["unicorn/prefer-array-flat"] = "off";
12401241
config.rules["unicorn/prefer-array-flat-map"] = "off";
12411242
config.rules["unicorn/prefer-string-trim-start-end"] = "off";

0 commit comments

Comments
 (0)