Skip to content

Commit 970d358

Browse files
fix: disable unicorn/no-array-sort rule for non supported ES versions (#92)
1 parent 37547fa commit 970d358

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

configs/javascript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,10 @@ function getConfig(esVersion) {
12941294
config.rules["unicorn/prefer-class-fields"] = "off";
12951295
}
12961296

1297+
if (esVersion < 2023) {
1298+
config.rules["unicorn/no-array-sort"] = "off";
1299+
}
1300+
12971301
return config;
12981302
}
12991303

0 commit comments

Comments
 (0)