This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
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.
Snyk has created this PR to upgrade xo from 0.25.3 to 0.28.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.The recommended version fixes:
SNYK-JS-ACORN-559469
SNYK-JS-KINDOF-537849
Release notes
Package name: xo
New rules
unicorn/string-content
rule (#439) 5a22b77unicorn/prevent-abbreviations
rule ba4efc9This 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) f656ee3extensions
andignores
from config files (#436) 0d63c64v0.27.2...v0.28.0
v0.27.1...v0.27.2
Important: We changed the cache structure, so you'll need to delete
node_modules/.cache/xo
:v0.27.0...v0.27.1
You can now lint TypeScript projects without any extra config. You can also lint
d.ts
files in JS projects. Read more.extends
,envs
,globals
,plugins
(#429) 4cefdbcnode/no-unsupported-features
rules (#341) 2297c07import/no-unassigned-import
settings (#430) 0c78113v0.26.1...v0.27.0
eslint-config-prettier
override (#422) 9fbdb97v0.26.0...v0.26.1
Breaking
$ xo --init
to$ npm init xo
6463dfeNew 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 default eb5ea2cFixes
v0.25.3...v0.26.0
import/order
rule 776927fv0.25.3...v0.25.4
unicorn/prefer-flat-map
only for Node.js >=11 (#403) 80c592ev0.25.2...v0.25.3
Commit messages
Package name: xo
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs