Releases: xojs/xo
Releases · xojs/xo
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)
All changes
v0.23.0
Highlights
- In v0.22.0, we added support for
.ts
and.tsx
extensions by default. This caused a lot of problems for non-TS projects, so it has been reverted pending a better solution. - The
quotes
rule is now set to disallow using template literals when you're not using any interpolation. xojs/eslint-config-xo@ea693f3 - Removed the
no-use-before-define
rule. It has too many false-positives. xojs/eslint-config-xo@1257597
New rules
require-await
unicorn/prefer-exponentiation-operator
unicorn/catch-error-name
(See this thread if you're wondering whyerror
is preferred overerr
) (Sorry about the churn, but this is an important milestone towards more readable code. Code is written once but read many times. We should optimize for the latter.)
All changes
v0.22.0
Highlights
- Upgraded to ESLint 5.
- Removed some patterns from the list of default ignores. They were too opinionated. 00d6b7c 8e4f435
fixture{-*,}.{js,jsx}
fixture{s,}/**
{test,tests,spec,__tests__}/fixture{s,}/**
**/bundle.js
- Added support for TypeScript and documented usage with Flow. 957b0d9
- Now respects
nodeVersion
option set in anoverride
block. 98dee9a - Fixed the CLI's
--space
option parsing. f76c901
New rules
no-misleading-character-class
require-atomic-updates
no-async-promise-executor
ava/no-import-test-file