Releases: xojs/xo
Releases · xojs/xo
v0.38.2
v0.38.1
- Fix a problem in v0.38.0 8b2fa78
v0.38.0
New rules
unicorn/no-new-array
unicorn/prefer-array-index-of
unicorn/prefer-regexp-test
unicorn/no-array-for-each
unicorn/no-array-push-push
unicorn/no-this-assignment
@typescript-eslint/object-curly-spacing
Improvements
- Add auto-fix for fixing file extensions in imports f4f6b39
- Add
.mjs
and.cjs
as default extensions (#521) 2e05c81 - Allow file extension for
import/no-unassigned-import
allow list 8156d42
Fixes
v0.37.1
- Fix TypeScript not supporting extensions f56d90d
v0.37.0
New rules
no-unsafe-optional-chaining
no-useless-backreference
default-case-last
no-nonoctal-decimal-escape
unicorn/prefer-array-some
unicorn/prefer-default-parameters
unicorn/no-lonely-if
unicorn/empty-brace-spaces
unicorn/prefer-date-now
@typescript-eslint/non-nullable-type-assertion-style
@typescript-eslint/no-confusing-void-expression
Renamed rules
Only affects you if you had any of these rules disabled.
unicorn/no-fn-reference-in-iterator
→unicorn/no-array-callback-reference
unicorn/no-array-instanceof
→unicorn/no-instanceof-array
unicorn/no-reduce
→unicorn/no-array-reduce
unicorn/prefer-dataset
→unicorn/prefer-dom-node-dataset
unicorn/prefer-flat-map
→unicorn/prefer-array-flat-map
unicorn/prefer-replace-all
→unicorn/prefer-string-replace-all
unicorn/prefer-starts-ends-with
→unicorn/prefer-string-starts-ends-with
unicorn/prefer-text-content
→unicorn/prefer-dom-node-text-content
unicorn/prefer-trim-start-end
→unicorn/prefer-string-trim-start-end
unicorn/prefer-event-key
→unicorn/prefer-keyboard-event-key
unicorn/prefer-node-append
→unicorn/prefer-dom-node-append
unicorn/prefer-node-remove
→unicorn/prefer-dom-node-remove
Improvements
v0.36.1
- Fix a bug in v0.36 a186078
v0.36.0
v0.35.0
New rules
Improvements
v0.34.2
v0.34.1
- Disable the
unicorn/import-style
rule for TypeScript projects 77716e2
It wants to useimport path from 'path';
which is not always possible.