-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update linters (major) #39
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-linters
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed1f781
to
761bc07
Compare
761bc07
to
2c46da3
Compare
1690eb4
to
b6ad342
Compare
b6ad342
to
40151df
Compare
40151df
to
1026ef0
Compare
1026ef0
to
1bd1c28
Compare
1bd1c28
to
b48bc23
Compare
b48bc23
to
13f9f8e
Compare
13f9f8e
to
cccc761
Compare
cccc761
to
13e635c
Compare
13e635c
to
5e40e0e
Compare
5e40e0e
to
7d664b2
Compare
7d664b2
to
0ca098c
Compare
0ca098c
to
fde8f03
Compare
fde8f03
to
514d0a9
Compare
514d0a9
to
4d1d3ac
Compare
4d1d3ac
to
26e8b26
Compare
26e8b26
to
59a6366
Compare
59a6366
to
06b20e5
Compare
06b20e5
to
d163b30
Compare
d163b30
to
9b0bc1b
Compare
9b0bc1b
to
83d98d4
Compare
a7514d2
to
01b577d
Compare
01b577d
to
9e6a075
Compare
f5b9d9a
to
57c6963
Compare
1476386
to
03aa00a
Compare
03aa00a
to
ec6dcb1
Compare
ec6dcb1
to
6d51673
Compare
6d51673
to
c4c4a53
Compare
c4c4a53
to
bababdb
Compare
bababdb
to
1cc59f9
Compare
d6d2222
to
995c6d6
Compare
472838a
to
c0ab517
Compare
959a98b
to
87da268
Compare
91b5a84
to
7102565
Compare
7102565
to
eb7cb8f
Compare
eb7cb8f
to
577b88a
Compare
577b88a
to
92d9fa0
Compare
92d9fa0
to
72fde98
Compare
1641fdb
to
122f433
Compare
122f433
to
77f692f
Compare
3985a48
to
20df33e
Compare
20df33e
to
20b2615
Compare
20b2615
to
222ea31
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^6.4.0
->^9.1.0
^10.0.0
->^11.1.0
^4.2.1
->^6.2.0
^1.18.2
->^3.3.2
^5.20.0
->^6.1.3
Release Notes
prettier/eslint-config-prettier (eslint-config-prettier)
v9.1.0
Compare Source
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED
environment variable.v9.0.0
Compare Source
"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)!v8.10.0
Compare Source
v8.9.0
Compare Source
v8.8.0
Compare Source
v8.7.0
Compare Source
v8.6.0
Compare Source
v8.5.0
Compare Source
v8.4.0
Compare Source
v8.3.0
Compare Source
v8.2.0
Compare Source
v8.1.0
Compare Source
v8.0.0
Compare Source
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][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).
v7.2.0
Compare Source
v7.1.0
Compare Source
v7.0.0
Compare Source
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.
v6.15.0
Compare Source
v6.14.0
Compare Source
v6.13.0
Compare Source
v6.12.0
Compare Source
v6.11.0
Compare Source
v6.10.1
Compare Source
npx
when running the CLI helper tool.v6.10.0
Compare Source
v6.9.0
Compare Source
v6.8.0
Compare Source
v6.7.0
Compare Source
v6.6.0
Compare Source
v6.5.0
Compare Source
mysticatea/eslint-plugin-node (eslint-plugin-node)
v11.1.0
Compare Source
The many rules for Node.js in the ESLint core will be deprecated in ESLint 7.0.0. This release includes the clone of those core rules.
✨ Enhancements
8788a11
added ten rules from the ESLint core:ade0b59
added node/no-restricted-import rule that is ES modules version of node/no-restricted-require rule.v11.0.0
Compare Source
💥 Breaking changes
b6cb9a0
updatednode/no-unsupported-features/node-builtins
rule based on Node.js 13.2.0.fb9ce15
updatednode/no-unsupported-features/es-syntax
rule to recognize BigInt literal property names.4295f6a
updated the rules that check global variables to recognizeglobalThis.*
.04051ed
updatednode/no-unsupported-features/es-builtins
rule to recognizeglobalThis
.✨ Enhancements
276a9ad
updatednode/no-deprecated-api
rule to allow revoked deprecations.972f828
updatednode/no-unsupported-features/node-builtins
rule to handle backporting properly.🐛 Bug fixes
4f74fbf
fixed a crash bug around dynamic import syntax.eslint-community/eslint-plugin-promise (eslint-plugin-promise)
v6.2.0
Compare Source
v6.1.1
Compare Source
Bug Fixes
v6.1.0
Compare Source
Bug Fixes
Features
no-multiple-resolved
rule (#369) (3a6fdbe)ignoreLastCallback
option (#365) (01def31)Promise.allSettled()
&Promise.any()
(#370) (e080f82)resolvePattern
&rejectPattern
option (#368) (df25e3c)v6.0.1
Compare Source
v6.0.0
Compare Source
v5.2.0
Compare Source
param-names
rule to allow for unused paramsv5.1.1
Compare Source
no-callback-in-promise
reasons #215v5.1.0
Compare Source
catch()
andfinally()
inprefer-await-to-then
#196(#212)
v5.0.0
Compare Source
v4.3.1
Compare Source
v4.3.0
Compare Source
prettier/prettier (prettier)
v3.3.2
Compare Source
diff
Fix handlebars path expressions starts with
@
(#16358 by @Princeyadav05)v3.3.1
Compare Source
diff
Preserve empty lines in front matter (#16347 by @fisker)
Preserve explicit language in front matter (#16348 by @fisker)
Avoid line breaks in import attributes (#16349 by @fisker)
v3.3.0
Compare Source
diff
🔗 Release Notes
v3.2.5
Compare Source
diff
Support Angular inline styles as single template literal (#15968 by @sosukesuzuki)
Angular v17 supports single string inline styles.
Unexpected embedded formatting for Angular template (#15969 by @JounQin)
Computed template should not be considered as Angular component template
Use
"json"
parser fortsconfig.json
by default (#16012 by @sosukesuzuki)In v2.3.0, we introduced
"jsonc"
parser which adds trialing comma by default.When adding a new parser we also define how it will be used based on the
linguist-languages
data.tsconfig.json
is a special file used by TypeScript, it uses.json
file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing.json
file extension.We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the
"jsonc"
parser for yourtsconfig.json
files, add the following to your.pretterrc
filev3.2.4
Compare Source
diff
Fix incorrect parser inference (#15947 by @fisker)
Files like
.eslintrc.json
were incorrectly formatted as JSONC files.v3.2.3
Compare Source
diff
Throw errors for invalid code (#15881 by @fisker, @Josh-Cena, @auvred)
Fix parser inference (#15927 by @fisker)
v3.2.2
Compare Source
diff
Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#15896 by @eelco)
For example this code would crash before:
Fix formatting error on optional call expression and member chain (#15920 by @sosukesuzuki)
v3.2.1
Compare Source
diff
Fix formatting error on member chain (#15915 by @sosukesuzuki)
v3.2.0
Compare Source
diff
🔗 Release Notes
v3.1.1
Compare Source
diff
Fix config file search (#15363 by @fisker)
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
Skip explicitly passed symbolic links with
--no-error-on-unmatched-pattern
(#15533 by @sanmai-NL)Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use
--no-error-on-unmatched-pattern
to simply skip symbolic links.Consistently use tabs in ternaries when
useTabs
istrue
(#15662 by @auvred)Improve config file search (#15663 by @fisker)
The Prettier config file search performance has been improved by more effective cache strategy.
Fix unstable and ugly formatting for comments in destructuring patterns (#15708 by @sosukesuzuki)
Support "Import Attributes" (#15718 by @fisker)
TypeScript 5.3 supports the latest updates to the import attributes proposal.
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#15750 by @ExplodingCabbage)
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @ds300. However, Prettier's documentation (including the CLI
--help
text) continued to claim otherwise, falsely. The documentation is now fixed.Keep curly braces and
from
keyword in emptyimport
statements (#15756 by @fisker)Keep empty import attributes and assertions (#15757 by @fisker)
v3.1.0
Compare Source
diff
🔗 Release Notes
v3.0.3
Compare Source
diff
Add
preferUnplugged: true
topackage.json
(#15169 by @fisker and @so1ve)Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add
preferUnplugged: true
topackage.json
, so Yarn will install Prettier as unplug by default.Support shared config that forbids
require()
(#15233 by @fisker)If an external shared config package is used, and the package
exports
don't haverequire
ordefault
export.In Prettier 3.0.2 Prettier fails when attempt to
require()
the package, and throws an error.Allow argument of
require()
to break (#15256 by @fisker)Do not print trailing commas in arrow function type parameter lists in
ts
code blocks (#15286 by @sosukesuzuki)Support TypeScript 5.2
using
/await using
declaration (#15321 by @sosukesuzuki)Support for the upcoming Explicit Resource Management feature in ECMAScript.
using
/await using
declarationv3.0.2
Compare Source
diff
Break after
=
of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#15204 by @seiyab)Do not add trailing comma for grouped scss comments (#15217 by @auvred)
Print
declare
andexport
keywords for nested namespace (#15249 by @sosukesuzuki)v3.0.1
Compare Source
diff
Fix cursor positioning for a special case (#14812 by @fisker)
Fix plugins/estree.d.ts to make it a module (#15018 by @kingyue737)
Add
export {}
inplugins/estree.d.ts
to fix the "File is not a module" errorAdd parenthesis around leading multiline comment in return statement (#15037 by @auvred)
Add support for Vue "Generic Components" (#15066 by @auvred)
https://blog.vuejs.org/posts/vue-3-3#generic-components
Fix comments print in
IfStatement
(#15076 by @fisker)Add missing type definition for
printer.preprocess
(#15123 by @so1ve)Add missing
getVisitorKeys
method type definition forPrinter
(#15125 by @auvred)Add typing to support
readonly
array properties of AST Node (#15127 by @auvred)Add space before unary minus followed by a function call (#15129 by @pamelalozano)
v3.0.0
Compare Source
diff
🔗 Release Notes
v2.8.8
Compare Source
This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.
v2.8.7
Compare Source
diff
Allow multiple decorators on same getter/setter (#14584 by @fisker)
v2.8.6
Compare Source
diff
Allow decorators on private members and class expressions (#14548 by @fisker)
v2.8.5
Compare Source
diff
Support TypeScript 5.0 (#14391 by @fisker, #13819 by @fisker, @sosukesuzuki)
TypeScript 5.0 introduces two new syntactic features:
const
modifiers for type parametersexport type *
declarationsAdd missing parentheses for decorator (#14393 by @fisker)
Add parentheses for
TypeofTypeAnnotation
to improve readability (#14458 by @fisker)Suppo
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.