Releases: xojs/xo
Releases · xojs/xo
v0.42.0
New rules
Improvements
v0.41.0
Breaking
- XO can no longer be installed globally.
- It caused too many problems. Instead, you can run the local XO binary with
$ npx xo.
- It caused too many problems. Instead, you can run the local XO binary with
- XO now enforces trailing comma in multiline statements.
- This has a lot of benefits.
- Prettier also enforces this by default.
- If you don't want it, you can disable the
comma-danglerule, and@typescript-eslint/comma-dangleif you use TypeScript.
- Change
operator-linebreakrule to enforce operatorsbefore.- This way is more readable.
New rules
v0.40.3
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