Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.25.3
->0.37.1
Release Notes
xojs/xo
v0.37.1
Compare Source
f56d90d
v0.37.0
Compare Source
New rules
no-unsafe-optional-chaining
no-useless-backreference
default-case-last
no-nonoctal-decimal-escape
unicorn/prefer-array-some
unicorn/prefer-default-parameters
unicorn/no-lonely-if
unicorn/empty-brace-spaces
unicorn/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-reference
unicorn/no-array-instanceof
→unicorn/no-instanceof-array
unicorn/no-reduce
→unicorn/no-array-reduce
unicorn/prefer-dataset
→unicorn/prefer-dom-node-dataset
unicorn/prefer-flat-map
→unicorn/prefer-array-flat-map
unicorn/prefer-replace-all
→unicorn/prefer-string-replace-all
unicorn/prefer-starts-ends-with
→unicorn/prefer-string-starts-ends-with
unicorn/prefer-text-content
→unicorn/prefer-dom-node-text-content
unicorn/prefer-trim-start-end
→unicorn/prefer-string-trim-start-end
unicorn/prefer-event-key
→unicorn/prefer-keyboard-event-key
unicorn/prefer-node-append
→unicorn/prefer-dom-node-append
unicorn/prefer-node-remove
→unicorn/prefer-dom-node-remove
Improvements
211f295
err
→error
for variable namesd801095
0ec4b8c
v0.36.1
Compare Source
a186078
v0.36.0
Compare Source
processor
optionbf6eb25
7731ea1
v0.35.0
Compare Source
New rules
@typescript-eslint/no-unnecessary-type-constraint
@typescript-eslint/space-infix-ops
Improvements
b1012d3
0555859
6fa99cd
v0.34.2
Compare Source
extensions
option (#503)35e6336
v0.34.1
Compare Source
unicorn/import-style
rule for TypeScript projects77716e2
It wants to use
import path from 'path';
which is not always possible.v0.34.0
Compare Source
New rules
unicorn/import-style
unicorn/prefer-math-trunc
@typescript-eslint/consistent-indexed-object-style
@typescript-eslint/no-duplicate-imports
@typescript-eslint/comma-dangle
@typescript-eslint/no-loop-func
@typescript-eslint/no-implicit-any-catch
Improvements
ba547e7
v0.33.1
Compare Source
ead63be
v0.33.0
Compare Source
New rules
no-unreachable-loop
no-promise-executor-return
no-loss-of-precision
unicorn/prefer-array-find
unicorn/no-object-as-default-parameter
@typescript-eslint/prefer-literal-enum-member
@typescript-eslint/no-loss-of-precision
@typescript-eslint/ban-tslint-comment
Improvements
f45ab80
v0.32.1
Compare Source
v0.32.0
Compare Source
0dd4a9d
import/extensions
ruled3abdb6
v0.31.0
Compare Source
New rules
unicorn/prefer-optional-catch-binding
unicorn/no-reduce
@typescript-eslint/lines-between-class-members
@typescript-eslint/no-invalid-void-type
@typescript-eslint/prefer-ts-expect-error
@typescript-eslint/no-unnecessary-condition
import/no-anonymous-default-export
import/no-named-default
Improvements
6a05691
v0.30.0
Compare Source
New rules
@typescript-eslint/class-literal-property-style
rule@typescript-eslint/prefer-readonly-parameter-types
rule@typescript-eslint/no-base-to-string
rule@typescript-eslint/keyword-spacing
rule@typescript-eslint/method-signature-style
rule@typescript-eslint/prefer-reduce-type-parameter
rule@typescript-eslint/no-floating-promises
rulee870168
Fixes
prettier
dependency at2.0.4
until we can resolve #466--stdin --fix
(#460)07e2762
v0.29.1
Compare Source
tap-snapshots/*.cjs
to default ignore list (#461)4783f26
unicorn/string-content
rule (#462)967927d
v0.29.0
Compare Source
New rules
unicorn/prefer-number-properties
unicorn/prefer-set-has
@typescript-eslint/class-literal-property-style
@typescript-eslint/no-unsafe-return
@typescript-eslint/no-unsafe-member-access
@typescript-eslint/no-unsafe-call
@typescript-eslint/prefer-readonly-parameter-types
@typescript-eslint/no-base-to-string
Improvements
e05efc3
nodeVersion
in XO config to overrideengines.node
(#457)f20f6d2
ignore
option toexpiring-todo-comment
rulev0.28.3
Compare Source
semicolon
option with TypeScript (#446)c47a0c6
a4625a7
v0.28.2
Compare Source
indent
rule for TS files too (#451)41b1bd7
28902f0
v0.28.1
Compare Source
xo-typescript
andprettier/@​typescript-eslint
before user extends (#442)6c57ff7
fc30597
v0.28.0
Compare Source
New rules
unicorn/string-content
rule (#439)5a22b77
unicorn/prevent-abbreviations
ruleba4efc9
This rule enforces more readable code by preventing the use of certain abbreviations in favor of the full word. Not everyone knows all abbreviations. Saving a few characters are not worth making your code less readable. List of abbreviations XO prevents.
Improvements
webpack
option (#375)f656ee3
extensions
andignores
from config files (#436)0d63c64
v0.27.2
Compare Source
1807537
v0.27.1
Compare Source
0ea5dbb
Important: We changed the cache structure, so you'll need to delete
node_modules/.cache/xo
:v0.27.0
Compare Source
b0dfcbd
You can now lint TypeScript projects without any extra config. You can also lint
d.ts
files in JS projects. Read more.e0f81a7
extends
,envs
,globals
,plugins
(#429)4cefdbc
node/no-unsupported-features
rules (#341)2297c07
import/no-unassigned-import
settings (#430)0c78113
v0.26.1
Compare Source
eslint-config-prettier
override (#422)9fbdb97
v0.26.0
Compare Source
Breaking
d7fa875
$ xo --init
to$ npm init xo
6463dfe
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
node/prefer-global/url-search-params
node/prefer-global/url
promise/prefer-await-to-then
Enhancements
es2020
environment by defaulteb5ea2c
Fixes
08af7c1
v0.25.4
Compare Source
import/order
rule776927f
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.