@@ -554,8 +554,7 @@ rules:
554
554
no-unsafe-optional-chaining :
555
555
- 2
556
556
- disallowArithmeticOperators : true
557
- # Requires Node.js 16.9.0
558
- prefer-object-has-own : 0
557
+ prefer-object-has-own : 2
559
558
# Array.reduce() is sometimes useful in stateful logic
560
559
unicorn/prefer-object-from-entries : 0
561
560
@@ -582,8 +581,7 @@ rules:
582
581
unicorn/prefer-negative-index : 2
583
582
unicorn/prefer-array-find :
584
583
- 2
585
- # TODO: enable after dropping support for Node <18.0.0
586
- - checkFromLast : false
584
+ - checkFromLast : true
587
585
unicorn/prefer-array-some : 2
588
586
unicorn/prefer-array-index-of : 2
589
587
unicorn/no-useless-length-check : 2
@@ -602,10 +600,8 @@ rules:
602
600
unicorn/prefer-string-starts-ends-with : 2
603
601
unicorn/prefer-string-trim-start-end : 2
604
602
unicorn/prefer-string-slice : 2
605
- # Requires Node 15.0.0
606
- unicorn/prefer-string-replace-all : 0
607
- # Requires Node 16.6.0
608
- unicorn/prefer-at : 0
603
+ unicorn/prefer-string-replace-all : 2
604
+ unicorn/prefer-at : 2
609
605
unicorn/no-hex-escape : 2
610
606
unicorn/escape-case : 2
611
607
unicorn/no-console-spaces : 2
@@ -701,9 +697,7 @@ rules:
701
697
- 2
702
698
- allowComputed : true
703
699
import/no-named-as-default : 2
704
- # TODO: re-enable once it stops reporting errors for `sinon`, i.e. once
705
- # `sinon` is using ES modules
706
- import/no-named-as-default-member : 0
700
+ import/no-named-as-default-member : 2
707
701
unicorn/prefer-export-from :
708
702
- 2
709
703
- ignoreUsedVariables : true
@@ -891,8 +885,7 @@ rules:
891
885
no-alert : 2
892
886
unicorn/prefer-add-event-listener : 2
893
887
unicorn/no-invalid-remove-event-listener : 2
894
- # Requires Node 15.0.0
895
- unicorn/prefer-event-target : 0
888
+ unicorn/prefer-event-target : 2
896
889
n/no-process-exit : 2
897
890
unicorn/no-process-exit : 2
898
891
0 commit comments