chore(deps): update dependency prettier to v3 #12
Loading…
Reference in New Issue
No description provided.
Delete Branch "renovate/prettier-3.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.8.8
->3.2.5
Release Notes
prettier/prettier (prettier)
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 v3.2.0, we introduced
"jsonc"
parser which adds trailing 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.prettierrc
filev3.2.4
Compare Source
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 Renovate Bot.
73bc56aae6
toe1351f37c8
e1351f37c8
to5b92e2c634
5b92e2c634
tocd62fd8899
cd62fd8899
to7a906452d1
7a906452d1
toea89f1c9af
ea89f1c9af
tof19ab70a62
f19ab70a62
to6b1d514be8
6b1d514be8
todfafcdae8d
dfafcdae8d
tof3e8dee919
f3e8dee919
to2c7f489a53
2c7f489a53
to8182cef088
8182cef088
tof1a85aab78
f1a85aab78
to3c1f0b8653
3c1f0b8653
to8a9da1cc7e
8a9da1cc7e
toea28b06f3c
ea28b06f3c
to209cd35dec
209cd35dec
to873764a2d7
873764a2d7
toaf1674f832
af1674f832
to979b3a907e
979b3a907e
to31b254921e
31b254921e
toafd2343d7c
afd2343d7c
to0b5f5432fd
0b5f5432fd
to333e257cf8
333e257cf8
to49716f7d5e
49716f7d5e
to4554439158
4554439158
to07129d7529
07129d7529
to11d1254393
11d1254393
to3a11e5f3b6
3a11e5f3b6
to79b01c1552
79b01c1552
to45e0d737a0
45e0d737a0
to49144cb3ae
49144cb3ae
to74b9850294
74b9850294
to6cbc987ad8
6cbc987ad8
tofda47a318e
fda47a318e
tob788c95ef3
b788c95ef3
toec4a40b70b
ec4a40b70b
tof9de3f98df
f9de3f98df
to99cdfd571c
99cdfd571c
to10d0cce143
10d0cce143
to979f40bf37
979f40bf37
tof4b4968f3d
f4b4968f3d
to6ae1e6383e
6ae1e6383e
tof24dc71e73
f24dc71e73
tob729b8d522
b729b8d522
tob3cbb7a8f3
b3cbb7a8f3
to955b18786b
955b18786b
todf50d1d956
df50d1d956
to7abc14c47c
7abc14c47c
todac5d2f682
dac5d2f682
to38c084fc42
38c084fc42
to19821cd5d8
19821cd5d8
to552fba1840
552fba1840
toede637b381
ede637b381
to069e8260c9
069e8260c9
to0cb2fdcf30
0cb2fdcf30
toa39a88728a
a39a88728a
to8d20378f87
8d20378f87
to12d7aa9fa1
12d7aa9fa1
tof54c67a1a0
f54c67a1a0
tob731571255
b731571255
to754cb39a13
754cb39a13
to4f00d1e30d
4f00d1e30d
tof558f64876
f558f64876
tocf7c8d5c6f
cf7c8d5c6f
tob2115df6cb
b2115df6cb
toce8b4a79d3
ce8b4a79d3
to03383384eb
03383384eb
to743854bdd3
743854bdd3
to0e386f2b78
0e386f2b78
tof8cf9de9a6
f8cf9de9a6
tof11fac5fb6
f11fac5fb6
to4ca13d228b
4ca13d228b
to49e9f762ec
49e9f762ec
to73a0ae571c
73a0ae571c
tofd06de88d8
fd06de88d8
to0b1e075c8f
0b1e075c8f
toc68c17708a
c68c17708a
to00f089e123
00f089e123
toeb67f97275
eb67f97275
to3777a64633
3777a64633
to1db984d83f
1db984d83f
to414d8e8dd6
414d8e8dd6
to08dc9e1155
08dc9e1155
tob37971b8ec
b37971b8ec
to431d53ad58
431d53ad58
toba44231535
ba44231535
tod826259e6f
d826259e6f
to84b603e36c
84b603e36c
to61b29f5a36
61b29f5a36
to91d661568e
91d661568e
to58b69ad66a
58b69ad66a
to60585f52fd
60585f52fd
tob50aa86147
b50aa86147
toe0bf31922c
e0bf31922c
toe8cfbeec43
e8cfbeec43
to57b866ad6f
57b866ad6f
to28fda73be6
28fda73be6
tob8d8bbbae1
b8d8bbbae1
toc0cc939854
c0cc939854
to0dbc778d07
0dbc778d07
toaf716ac4e6
af716ac4e6
to53ad630b01
53ad630b01
toa7ee0e2fd7
a7ee0e2fd7
tobfa9f8ee66
bfa9f8ee66
tof8ddf3225f
f8ddf3225f
tofeeba72e71
feeba72e71
tof047005fe6