Changed
- BREAKING: Updated
eslint-plugin-unicornfrom v64.0.0 to v69.0.0.
- Removed
better-regexrule due to unfixable errors.
- Renamed
prefer-dom-node-datasetrule todom-node-dataset.
- Renamed
no-array-for-eachrule tono-for-each
- Removed
no-hex-escaperule and replaced withprefer-unicode-code-point-escapes, which covers more cases.
- Renamed
prevent-abbreviationsrule toname-replacements.
- Added 153 new rules as errors and 17 new rules as disabled. See lists below for details.
- Removed
New eslint-plugin-unicorn rules added as errors
better-dom-traversing
class-reference-in-static-methods
consistent-boolean-name
consistent-class-member-order
consistent-compound-words
consistent-conditional-object-spread
consistent-export-decorator-position (error for TypeScript, disabled for JavaScript)
consistent-json-file-read
consistent-optional-chaining
consistent-tuple-labels (error for TypeScript, disabled for JavaScript)
default-export-style
explicit-timer-delay
max-nested-calls
no-accidental-bitwise-operator
no-array-concat-in-loop
no-array-fill-with-reference-type
no-array-from-fill
no-array-sort-for-min-max
no-array-splice
no-blob-to-file
no-boolean-sort-comparator
no-break-in-nested-loop
no-canvas-to-image
no-chained-comparison
no-collection-bracket-access
no-computed-property-existence-check
no-confusing-array-splice
no-confusing-array-with
no-constant-zero-expression
no-declarations-before-early-exit
no-double-comparison
no-duplicate-if-branches
no-duplicate-logical-operands
no-duplicate-loops
no-duplicate-set-values
no-error-property-assignment
no-exports-in-scripts
no-global-object-property-assignment (disabled for test files)
no-impossible-length-comparison
no-incorrect-query-selector
no-incorrect-template-string-interpolation
no-invalid-argument-count
no-invalid-character-comparison
no-invalid-well-known-symbol-methods
no-late-current-target-access
no-late-event-control
no-loop-iterable-mutation
no-manually-wrapped-comments
no-mismatched-map-key
no-misrefactored-assignment
no-negated-array-predicate
no-negated-comparison
no-non-function-verb-prefix
no-nonstandard-builtin-properties
no-object-methods-with-collections
no-optional-chaining-on-undeclared-variable
no-redundant-comparison
no-return-array-push
no-selector-as-dom-name
no-subtraction-comparison
no-this-outside-of-class
no-top-level-assignment-in-function
no-top-level-side-effects
no-uncalled-method
no-undeclared-class-members
no-unnecessary-boolean-comparison
no-unnecessary-global-this
no-unnecessary-nested-ternary
no-unnecessary-splice
no-unreadable-for-of-expression
no-unreadable-object-destructuring
no-unsafe-buffer-conversion
no-unsafe-property-key
no-unsafe-string-replacement
no-unused-array-method-return
no-useless-boolean-cast
no-useless-coercion
no-useless-compound-assignment
no-useless-concat
no-useless-continue
no-useless-delete-check
no-useless-else
no-useless-logical-operand
no-useless-override
no-useless-recursion
no-useless-template-literals
no-xor-as-exponentiation
prefer-abort-signal-timeout
prefer-add-event-listener-options
prefer-aggregate-error
prefer-array-from-async
prefer-array-from-map
prefer-array-iterable-methods
prefer-array-last-methods
prefer-array-slice
prefer-await
prefer-boolean-return
prefer-continue
prefer-direct-iteration
prefer-dom-node-replace-children
prefer-early-return
prefer-else-if
prefer-flat-math-min-max
prefer-get-or-insert-computed
prefer-global-number-constants
prefer-has-check (error for TypeScript, disabled for JavaScript)
prefer-hoisting-branch-code
prefer-https
prefer-identifier-import-export-specifiers
prefer-includes-over-repeated-comparisons
prefer-iterable-in-constructor
prefer-iterator-to-array
prefer-iterator-to-array-at-end
prefer-location-assign
prefer-map-from-entries
prefer-math-abs
prefer-math-constants
prefer-minimal-ternary
prefer-number-coercion
prefer-number-is-safe-integer
prefer-object-define-properties
prefer-object-destructuring-defaults
prefer-object-iterable-methods
prefer-observer-apis
prefer-path2d
prefer-private-class-fields
prefer-promise-try
prefer-promise-with-resolvers
prefer-queue-microtask
prefer-scoped-selector
prefer-set-methods
prefer-short-arrow-method
prefer-simple-sort-comparator
prefer-single-array-predicate
prefer-single-object-destructuring
prefer-single-replace
prefer-smaller-scope
prefer-split-limit
prefer-string-match-all
prefer-string-pad-start-end
prefer-string-repeat
prefer-toggle-attribute
prefer-type-literal-last
prefer-uint8array-base64
prefer-unary-minus
prefer-url-can-parse
prefer-url-href
prefer-url-search-parameters
prefer-while-loop-condition
require-array-sort-compare
require-css-escape
require-passive-events
require-proxy-trap-boolean-return
New eslint-plugin-unicorn rules added as disabled
comment-content
consistent-function-style
id-match
logical-assignment-operators
no-array-front-mutation
no-asterisk-prefix-in-documentation-comments
no-invalid-file-input-accept
no-unreadable-new-expression
no-unsafe-dom-html
operator-assignment
prefer-dispose
prefer-dom-node-html-methods
prefer-error-is-error
prefer-iterator-concat
prefer-regexp-escape
prefer-temporal
try-complexity
Fixed
- Updated to latest dependencies:
eslint-plugin-jest@29.15.4,
eslint-plugin-jsdoc@63.0.10,eslint-plugin-n@18.2.1,
globals@17.7.0,typescript-eslint@8.62.1.
Miscellaneous
- Updated package to only allow trusted,
staged publishing. (#154)
- Updated GitLab CI Templates to v53.0.0. See the
release notes
for details.