Releases: xojs/xo
Releases · xojs/xo
v0.27.0
- Add TypeScript support (#426) b0dfcbd
You can now lint TypeScript projects without any extra config. You can also lintd.tsfiles 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-featuresrules (#341) 2297c07 - Improve
import/no-unassigned-importsettings (#430) 0c78113
v0.26.1
v0.26.0
Breaking
New rules
20 new rules 👌
ESLint
default-param-lastfunction-call-argument-newlinegrouped-accessor-pairsno-constructor-returnno-dupe-else-ifno-import-assignno-setter-returnno-useless-catchprefer-exponentiation-operatorprefer-named-capture-groupprefer-object-spreadprefer-regex-literals
Unicorn
unicorn/prefer-modern-dom-apisunicorn/prefer-negative-indexunicorn/prefer-replace-allunicorn/prefer-string-sliceunicorn/prefer-trim-start-end
Other
Enhancements
- Set the
es2020environment by default eb5ea2c
Fixes
v0.25.4
- Temporarily disable the
import/orderrule 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
.jsonextension for JSON files in imports 7e56730
New rules
- Add
prefer-named-capture-grouprule (for Node.js >=10 target) 21e7b57 - Add
default-param-lastrule - Add
prefer-regex-literalsrule - Add
no-import-assignrule - Add
unicorn/expiring-todo-commentsrule - Add
unicorn/no-nested-ternaryrule - Add
unicorn/prefer-reflect-applyrule - Add
unicorn/prefer-string-slicerule - Add
unicorn/prefer-datasetrule - Add
unicorn/no-for-looprule - Add
unicorn/no-zero-fractionsrule - Add
unicorn/prefer-includesrule - Add
unicorn/prefer-text-contentrule - Add
unicorn/prefer-node-removerule - Add
unicorn/prefer-event-keyrule - Add
unicorn/prefer-flat-maprule - Add
node/prefer-promises/fsrule a3d74a6 - Add
node/prefer-promises/dnsrule 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-importrule dd2c015
New rules
padding-line-between-statementsno-useless-catchunicorn/prefer-query-selectorunicorn/prefer-node-appendunicorn/no-unreadable-array-destructuringunicorn/no-console-spaceseslint-comments/disable-enable-paireslint-comments/no-aggregating-enableeslint-comments/no-duplicate-disableeslint-comments/no-unused-disableeslint-comments/no-unused-enablenode/prefer-global/buffernode/prefer-global/consolenode/prefer-global/processnode/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
.tsand.tsxextensions by default. This caused a lot of problems for non-TS projects, so it has been reverted pending a better solution. - The
quotesrule 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-definerule. It has too many false-positives. xojs/eslint-config-xo@1257597
New rules
require-awaitunicorn/prefer-exponentiation-operatorunicorn/catch-error-name(See this thread if you're wondering whyerroris 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.)