Releases: xojs/xo
Releases · xojs/xo
v0.27.1
Important: We changed the cache structure, so you'll need to delete node_modules/.cache/xo
:
$ rm node_modules/.cache/xo
v0.27.0
- Add TypeScript support (#426) b0dfcbd
You can now lint TypeScript projects without any extra config. You can also lintd.ts
files in JS projects. Read more. - Find XO config based on linted file path (#425) e0f81a7
- Fix overrides handling for
extends
,envs
,globals
,plugins
(#429) 4cefdbc - Add
node/no-unsupported-features
rules (#341) 2297c07 - Improve
import/no-unassigned-import
settings (#430) 0c78113
v0.26.1
v0.26.0
Breaking
New rules
20 new rules 👌
ESLint
default-param-last
function-call-argument-newline
grouped-accessor-pairs
no-constructor-return
no-dupe-else-if
no-import-assign
no-setter-return
no-useless-catch
prefer-exponentiation-operator
prefer-named-capture-group
prefer-object-spread
prefer-regex-literals
Unicorn
unicorn/prefer-modern-dom-apis
unicorn/prefer-negative-index
unicorn/prefer-replace-all
unicorn/prefer-string-slice
unicorn/prefer-trim-start-end
Other
Enhancements
- Set the
es2020
environment by default eb5ea2c
Fixes
v0.25.4
- Temporarily disable the
import/order
rule 776927f
v0.25.3
v0.25.2
v0.25.1
- Don't report normal TODO comments as errors 4378e83
v0.25.0
Breaking
- Require Node.js 8 8a213ef
- Upgrade to ESLint 6 698b043
- Enforce using the
.json
extension for JSON files in imports 7e56730
New rules
- Add
prefer-named-capture-group
rule (for Node.js >=10 target) 21e7b57 - Add
default-param-last
rule - Add
prefer-regex-literals
rule - Add
no-import-assign
rule - Add
unicorn/expiring-todo-comments
rule - Add
unicorn/no-nested-ternary
rule - Add
unicorn/prefer-reflect-apply
rule - Add
unicorn/prefer-string-slice
rule - Add
unicorn/prefer-dataset
rule - Add
unicorn/no-for-loop
rule - Add
unicorn/no-zero-fractions
rule - Add
unicorn/prefer-includes
rule - Add
unicorn/prefer-text-content
rule - Add
unicorn/prefer-node-remove
rule - Add
unicorn/prefer-event-key
rule - Add
unicorn/prefer-flat-map
rule - Add
node/prefer-promises/fs
rule a3d74a6 - Add
node/prefer-promises/dns
rule 8f8fc94
Enhancements
v0.24.0
Highlights
- You can now click/Command-click the rule IDs in the output to open the rule's docs. Preview. (Only in supported terminals) sindresorhus/eslint-formatter-pretty@7606f98
- Move default ESLint cache to
node_modules/.cache/xo
. (#351) d1fd3e1 - Support parsing ES2019 61f9582
- Drop support for Babel 6 in the
import/no-unassigned-import
rule dd2c015
New rules
padding-line-between-statements
no-useless-catch
unicorn/prefer-query-selector
unicorn/prefer-node-append
unicorn/no-unreadable-array-destructuring
unicorn/no-console-spaces
eslint-comments/disable-enable-pair
eslint-comments/no-aggregating-enable
eslint-comments/no-duplicate-disable
eslint-comments/no-unused-disable
eslint-comments/no-unused-enable
node/prefer-global/buffer
node/prefer-global/console
node/prefer-global/process
node/prefer-global/text-decoder
(When targeting Node.js 11)node/prefer-global/text-encoder
(When targeting Node.js 11)node/prefer-global/url-search-params
(When targeting Node.js 10)node/prefer-global/url
(When targeting Node.js 10)