Skip to content

Commit 30c1cad

Browse files
committedOct 22, 2023
Drop support for Node 16
1 parent eb878fd commit 30c1cad

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed
 

‎.eslintrc.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,7 @@ rules:
554554
no-unsafe-optional-chaining:
555555
- 2
556556
- disallowArithmeticOperators: true
557-
# Requires Node.js 16.9.0
558-
prefer-object-has-own: 0
557+
prefer-object-has-own: 2
559558
# Array.reduce() is sometimes useful in stateful logic
560559
unicorn/prefer-object-from-entries: 0
561560

@@ -582,8 +581,7 @@ rules:
582581
unicorn/prefer-negative-index: 2
583582
unicorn/prefer-array-find:
584583
- 2
585-
# TODO: enable after dropping support for Node <18.0.0
586-
- checkFromLast: false
584+
- checkFromLast: true
587585
unicorn/prefer-array-some: 2
588586
unicorn/prefer-array-index-of: 2
589587
unicorn/no-useless-length-check: 2
@@ -602,10 +600,8 @@ rules:
602600
unicorn/prefer-string-starts-ends-with: 2
603601
unicorn/prefer-string-trim-start-end: 2
604602
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
609605
unicorn/no-hex-escape: 2
610606
unicorn/escape-case: 2
611607
unicorn/no-console-spaces: 2
@@ -701,9 +697,7 @@ rules:
701697
- 2
702698
- allowComputed: true
703699
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
707701
unicorn/prefer-export-from:
708702
- 2
709703
- ignoreUsedVariables: true
@@ -891,8 +885,7 @@ rules:
891885
no-alert: 2
892886
unicorn/prefer-add-event-listener: 2
893887
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
896889
n/no-process-exit: 2
897890
unicorn/no-process-exit: 2
898891

0 commit comments

Comments
 (0)
Please sign in to comment.