-
-
Notifications
You must be signed in to change notification settings - Fork 14
chore(deps): update dependency eslint-config-prettier to v10 #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
⚠️ No Changeset found
Latest commit: 937b81d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR contains the following updates:
^9.1.0
->^10.0.0
Release Notes
prettier/eslint-config-prettier (eslint-config-prettier)
v10.0.1
Compare Source
eslint-config-prettier
10.0.0
Major Changes
5be64be
Thanks @abrahamguo! - add support for @stylistic formatting rulesVersions before 10.0.0
Version 9.1.0 (2023年12月02日)
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED
environment variable.Version 9.0.0 (2023年08月05日)
"unicode-bom": "off"
to your config to disable it again, or run ESLint with--fix
to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@nstepien)!Version 8.10.0 (2023年08月03日)
Version 8.9.0 (2023年07月27日)
Version 8.8.0 (2023年03月20日)
Version 8.7.0 (2023年03月06日)
Version 8.6.0 (2023年01月02日)
Version 8.5.0 (2022年03月02日)
Version 8.4.0 (2022年02月19日)
Version 8.3.0 (2021年04月24日)
Version 8.2.0 (2021年04月13日)
Version 8.1.0 (2021年02月24日)
Version 8.0.0 (2021年02月21日)
Changed: All configs have been merged into one!
To upgrade, change:
Into:
The
"prettier"
config now includes not just ESLint core rules, but also rules from all plugins. Much simpler!So ... what’s the catch? Why haven’t we done this earlier? Turns out it’s just a sad mistake. I (@lydell) was confused when testing, and thought that turning off unknown rules in a config was an error. Thanks to Georgii Dolzhykov (@thorn0) for pointing this out!
If you use eslint-plugin-prettier, all you need is plugin:prettier/recommended:
(The "prettier/prettier" config still exists separately. It’s the odd one out. The main
"prettier"
config does not include the rules from it.)Changed: The CLI helper tool now only prints warnings for arrow-body-style and prefer-arrow-callback, just like other "special rules." This means that if you’ve decided to use those rules and eslint-plugin-prettier at the same time, you’ll get warnings but exit code zero (success).
Version 7.2.0 (2021年01月18日)
Version 7.1.0 (2020年12月19日)
Version 7.0.0 (2020年12月05日)
Changed: At least ESLint 7.0.0 is now required.
Changed: arrow-body-style and prefer-arrow-callback are no longer turned off by default. They only need to be turned off if you use eslint-plugin-prettier. If you do, add
"prettier/prettier"
to your"extends"
array to turn them off again.Alternatively, update eslint-plugin-prettier to version 3.2.0 or later which automatically turns off these two rules in its
"plugin:prettier/recommended"
config.The CLI helper tool only warns about these rules if you have the
"prettier/prettier"
rule enabled for a file.Changed:
no-tabs
is now a validatable rule. If you use it, you should enableallowIndentationTabs
so that the rule works regardless of your Prettier config:Changed: The CLI helper tool is now called just
eslint-config-prettier
instead ofeslint-config-prettier-check
. This is so thatnpx eslint-config-prettier
always works regardless of whether you have already installedeslint-config-prettier
or not: If you have, the local installation is used; if you haven’t,npx
downloads a temporary copy.Changed: The CLI helper tool no longer requires you to pipe the output of
eslint --print-config
to it. Instead, it does that automatically for you via ESLint API:s added in ESLint v7.Before:
After:
Improved: The npm package is now 75% smaller.
Version 6.15.0 (2020年10月27日)
Version 6.14.0 (2020年10月21日)
Version 6.13.0 (2020年10月16日)
Version 6.12.0 (2020年09月25日)
Version 6.11.0 (2020年04月21日)
Version 6.10.1 (2020年03月22日)
npx
when running the CLI helper tool.Version 6.10.0 (2020年01月28日)
Version 6.9.0 (2019年12月27日)
Version 6.8.0 (2019年12月25日)
Version 6.7.0 (2019年11月19日)
Version 6.6.0 (2019年11月17日)
Version 6.5.0 (2019年10月26日)
Version 6.4.0 (2019年10月05日)
Version 6.3.0 (2019年09月10日)
Version 6.2.0 (2019年09月03日)
Version 6.1.0 (2019年08月19日)
Version 6.0.0 (2019年06月25日)
Changed: The CLI helper tool now considers no-confusing-arrow to conflict if you use the default value of its
allowParens
option. The default was changed totrue
in ESLint 6, which conflicts with Prettier.If the CLI helper tool gives you errors about this after upgrading, the solution is to change this:
Into this:
The latter works in both ESLint 6 as well as in ESLint 5 and older.
Improved:
eslint --print-config
usage instructions. The CLI tool help text as well as the documentation has been updated to suggest commands that work in ESLint 6.0 as well as in ESLint 5 and older. (Instead ofeslint --print-config .
, useeslint --print-config path/to/main.js
.)Version 5.1.0 (2019年06月25日)
Version 5.0.0 (2019年06月15日)
Removed: react/self-closing-comp. This rule was added in v4.1.0 not because it conflicted with Prettier but because it was unnecessary when using Prettier. However, in v1.18.0 Prettier stopped converting empty elements to self-closing elements. So the rule is not unnecessary anymore.
If you use Prettier v1.17.1 or older you should be able to upgrade eslint-config-prettier to v5.0.0 without having to do anything else.
If you use Prettier v1.18.0 or newer, you might get lint errors about for example changing
<div></div>
into<div />
. You have two options:eslint --fix
if you prefer to enforce self-closing elements where possible. This should fix all the errors."react/self-closing-comp": "off"
to your ESLint config if you use autofix from your editor and you face the same issue as Prettier did.Changed: Node.js 6 is no longer officially supported, but v5.0.0 should still work with it.
Version 4.3.0 (2019年05月16日)
Version 4.2.0 (2019年04月25日)
Version 4.1.0 (2019年02月26日)
Version 4.0.0 (2019年01月26日)
--fix
. They are turned off by default, and the CLI helper tool will warn about them (but not error if you do enable them). This won’t break your linting checks, but do note that these rules will be disabled unless you explicitly enable them again, and that you might see new warnings when running the CLI helper tool.Version 3.6.0 (2019年01月19日)
Version 3.5.0 (2019年01月16日)
vue/no-layout-rules
list, since there can be layout rules that don’t conflict with but rather complement Prettier.Version 3.4.0 (2019年01月13日)
vue/no-layout-rules
config behind the scenes, so it should automatically stay up-to-date when new eslint-plugin-vue versions are released. Thanks to Michał Sajnóg (@michalsnik)!Version 3.3.0 (2018年11月11日)
Version 3.2.0 (2018年11月10日)
Version 3.1.0 (2018年09月22日)
Version 3.0.1 (2018年08月13日)
eslint --print-config
usage instructions.Version 3.0.0 (2018年08月13日)
Version 2.10.0 (2018年08月13日)
Version 2.9.0 (2017年11月26日)
Version 2.8.0 (2017年11月19日)
Version 2.7.0 (2017年11月01日)
Version 2.6.0 (2017年09月23日)
Version 2.5.0 (2017年09月16日)
Version 2.4.0 (2017年09月02日)
Version 2.3.0 (2017年06月30日)
Version 2.2.0 (2017年06月17日)
Version 2.1.1 (2017年05月20日)
Version 2.1.0 (2017年05月13日)
Version 2.0.0 (2017年05月07日)
Changed/Improved: The CLI helper tool is now more helpful.
Changed: The no-confusing-arrow is now a special rule again, since it might conflict with recent Prettier versions.
Removed: The
react/wrap-multilines
rule (which has been deprecated for a while), since it was removed in eslint-plugin-react@7.Version 1.7.0 (2017年04月19日)
Version 1.6.0 (2017年04月05日)
Version 1.5.0 (2017年03月04日)
Version 1.4.1 (2017年02月28日)
Version 1.4.0 (2017年02月26日)
Version 1.3.0 (2017年02月21日)
Version 1.2.0 (2017年02月14日)
Version 1.1.1 (2017年02月12日)
Version 1.1.0 (2017年02月10日)
Version 1.0.3 (2017年02月03日)
"extends": "prettier/react"
now actually works.Version 1.0.2 (2017年01月30日)
Version 1.0.1 (2017年01月29日)
npm publish
mistake.Version 1.0.0 (2017年01月29日)
v10.0.0
Compare Source
Major Changes
5be64be
Thanks @abrahamguo! - add support for @stylistic formatting rulesConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.