Releases: xojs/xo
Releases · xojs/xo
v0.40.2
v0.40.1
v0.40.0
Breaking
- XO now enforces that your project is ESM
If you cannot yet move to ESM, I recommend staying on XO 0.39 for now. - Require Node.js 12.20 cc06c3c
New rules
unicorn/prefer-node-protocolunicorn/prefer-moduleunicorn/no-document-cookieunicorn/numeric-separators-styleunicorn/prefer-array-flatunicorn/prefer-array-flat-map
Meta
v0.39.1
- Fix a problem with using XO with Prettier fa34c74
v0.39.0
New rules
unicorn/no-static-only-classunicorn/prefer-array-flatunicorn/prefer-switch@typescript-eslint/no-unsafe-argument
Breaking
- Remove the
esnextoption e80c094 unicorn/prevent-abbreviationsrule: Rename options sindresorhus/eslint-plugin-unicorn@cf42cc5unicorn/no-keyword-prefixrule: Renameblacklistoption todisallowedPrefixessindresorhus/eslint-plugin-unicorn@91e60d0
Improvements
v0.38.2
v0.38.1
- Fix a problem in v0.38.0 8b2fa78
v0.38.0
New rules
unicorn/no-new-arrayunicorn/prefer-array-index-ofunicorn/prefer-regexp-testunicorn/no-array-for-eachunicorn/no-array-push-pushunicorn/no-this-assignment@typescript-eslint/object-curly-spacing
Improvements
- Add auto-fix for fixing file extensions in imports f4f6b39
- Add
.mjsand.cjsas default extensions (#521) 2e05c81 - Allow file extension for
import/no-unassigned-importallow list 8156d42
Fixes
v0.37.1
- Fix TypeScript not supporting extensions f56d90d
v0.37.0
New rules
no-unsafe-optional-chainingno-useless-backreferencedefault-case-lastno-nonoctal-decimal-escapeunicorn/prefer-array-someunicorn/prefer-default-parametersunicorn/no-lonely-ifunicorn/empty-brace-spacesunicorn/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-referenceunicorn/no-array-instanceof→unicorn/no-instanceof-arrayunicorn/no-reduce→unicorn/no-array-reduceunicorn/prefer-dataset→unicorn/prefer-dom-node-datasetunicorn/prefer-flat-map→unicorn/prefer-array-flat-mapunicorn/prefer-replace-all→unicorn/prefer-string-replace-allunicorn/prefer-starts-ends-with→unicorn/prefer-string-starts-ends-withunicorn/prefer-text-content→unicorn/prefer-dom-node-text-contentunicorn/prefer-trim-start-end→unicorn/prefer-string-trim-start-endunicorn/prefer-event-key→unicorn/prefer-keyboard-event-keyunicorn/prefer-node-append→unicorn/prefer-dom-node-appendunicorn/prefer-node-remove→unicorn/prefer-dom-node-remove