chore(deps): update dependency prettier to v3 #5
Loading…
Reference in a 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.3.3
Release Notes
prettier/prettier (prettier)
v3.3.3
Compare Source
diff
Add parentheses for nullish coalescing in ternary (#16391 by @cdignam-segment)
This change adds clarity to operator precedence.
Add parentheses for decorator expressions (#16458 by @y-schneider)
Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.
Support
@let
declaration syntax (#16474 by @sosukesuzuki)Adds support for Angular v18
@let
declaration syntax.Please see the following code example. The
@let
declaration allows you to define local variables within the template:For more details, please refer to the excellent blog post by the Angular Team: Introducing @let in Angular.
We also appreciate the Angular Team for kindly answering our questions to implement this feature.
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 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.
Branch automerge failure
This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
2b0b22c8b0
tob8b3f709ee
b8b3f709ee
to9fbeae4651
9fbeae4651
to41fc1553bc
41fc1553bc
toa4931b69e4
a4931b69e4
to64bd71afcb
64bd71afcb
to42187df3df
42187df3df
to616505dda2
616505dda2
to1d193a59e6
1d193a59e6
toab8fc35d08
ab8fc35d08
to7f38e02f8c
7f38e02f8c
tob309a52839
b309a52839
to40ac9ed037
40ac9ed037
tod22242767d
d22242767d
to600c104bba
600c104bba
toeb9678973d
eb9678973d
toa4c70ee48c
a4c70ee48c
toed299e0d8c
ed299e0d8c
to8b8d81b51e
8b8d81b51e
to367f15b81d
367f15b81d
toddecef202a
ddecef202a
to427632e657
427632e657
to8c5243d4d7
8c5243d4d7
tof5f8e0c8df
f5f8e0c8df
to929fd5c0ca
929fd5c0ca
to001c6a40b5
001c6a40b5
to4c6901e50a
4c6901e50a
toa25d982e03
a25d982e03
to0ee59e7931
0ee59e7931
to578237eb86
578237eb86
toc5fbb89fc8
c5fbb89fc8
tod88c0f0a28
d88c0f0a28
to22a1821e47
22a1821e47
tof314ca7f4a
f314ca7f4a
toc4b12f547c
c4b12f547c
to5728979dde
5728979dde
toca7c29c922
ca7c29c922
to5d26ab6685
5d26ab6685
toe09d856149
e09d856149
tofe1d2e2e14
fe1d2e2e14
to0713dfe9ef
0713dfe9ef
toc48c3dea89
c48c3dea89
tod553d00ce1
d553d00ce1
tob623357215
b623357215
tofc064b8959
fc064b8959
to357ff34f53
357ff34f53
tob857b708c7
b857b708c7
to6731a7064f
6731a7064f
to8e27a42614
8e27a42614
to007a228aa7
007a228aa7
to254d3ac057
254d3ac057
tof4e2d36b95
f4e2d36b95
to4a7682c29d
4a7682c29d
to45c0dfccf8
45c0dfccf8
tof7df5db897
f7df5db897
tocf5d1f165c
cf5d1f165c
todc67a683d5
dc67a683d5
to2b645b049e
2b645b049e
to98f603f8a0
98f603f8a0
toa291ae33e1
a291ae33e1
to020b1349e0
020b1349e0
to7c8239bcff
7c8239bcff
toaf81ce7401
af81ce7401
to23dc1e714a
23dc1e714a
to1a5c743e8b
1a5c743e8b
tof589c248df
f589c248df
to6eff9badc9
6eff9badc9
toea7337405d
ea7337405d
tod61c3d8b89
d61c3d8b89
toe66b371433
e66b371433
to73a9b64a5d
73a9b64a5d
toc6fc8236d2
c6fc8236d2
to4fd48450e6
4fd48450e6
toc9b59c4b92
c9b59c4b92
toca578a90da
ca578a90da
to7bf04be2df
7bf04be2df
to5422cd26b3
5422cd26b3
to05cf177170
05cf177170
toc56de04c63
c56de04c63
to3767c5df43
3767c5df43
to4e204abc2c
4e204abc2c
tob2e7728af3
b2e7728af3
to004928dc6c
004928dc6c
to24dd7c633e
24dd7c633e
to76c0266dcd
76c0266dcd
toda4d51ac76
da4d51ac76
to18fa3feff7
18fa3feff7
to3bb1d4b1b2
3bb1d4b1b2
to67e311f19b
67e311f19b
to680dc342ca
680dc342ca
to438e6c83cc
438e6c83cc
to88b7a28056
88b7a28056
tofc039c386a
fc039c386a
to8dc5b828a3
8dc5b828a3
to0018592698
0018592698
to6042fb2a04
6042fb2a04
to4835ff51d6
4835ff51d6
tob1c5b3fe0b
b1c5b3fe0b
to6fa7c9355c
6fa7c9355c
to6f716761c2
6f716761c2
to828c8053e6
828c8053e6
to14f2cde6c5
14f2cde6c5
to4511f46834
4511f46834
toed44c3ed79
ed44c3ed79
toe24f5f3b80
e24f5f3b80
to0298024a5b
0298024a5b
to3225e2fe90
3225e2fe90
to26189132e9
26189132e9
toac63528bb7
ac63528bb7
to4c55de7982
4c55de7982
to2624e71cf6
2624e71cf6
toe12abc186e
e12abc186e
to0c88db84b3
0c88db84b3
to11492240cf
11492240cf
tofb755a2b13
fb755a2b13
to165f02c1f0
165f02c1f0
to06f6577acb
06f6577acb
toc18149b742
c18149b742
tobaffba470a
baffba470a
toaef3324267
aef3324267
tocb8e6788ce
cb8e6788ce
to90168e6170
90168e6170
to5815caaef4
5815caaef4
tod3d7d0c639
d3d7d0c639
to86c69c4e32
86c69c4e32
toe2384dacb0
e2384dacb0
tof5796e03a2
f5796e03a2
toacaacb8917
acaacb8917
to42dcd3dbb6
42dcd3dbb6
to8cb96f8b3b
8cb96f8b3b
to4b0323f269
4b0323f269
to4971fb6b82
4971fb6b82
to28c95d4638
28c95d4638
to8e5f361796
8e5f361796
tof6f14d0333
f6f14d0333
tof1c666a7a9
f1c666a7a9
to778705fe5f
778705fe5f
to73187a1fd6
73187a1fd6
to1195fef354
1195fef354
toe182a17d89
e182a17d89
to62c014ce0a
62c014ce0a
to8352117b57
8352117b57
to5ee9bf4106
5ee9bf4106
to68c355a5e6
68c355a5e6
to5c28f0d8f0
5c28f0d8f0
to4791eece63
4791eece63
to64b70b3680
64b70b3680
tobd035dc3c2
bd035dc3c2
to6186db9128
6186db9128
to0bb8d00c7d
0bb8d00c7d
tod9c4996187
d9c4996187
toa3c34d9b6f
a3c34d9b6f
tofaa5b8476d
faa5b8476d
to8ede672d6d
8ede672d6d
toe6d1a505da
e6d1a505da
to7dabdeab3e
7dabdeab3e
to6e2f0976ac
6e2f0976ac
todebc15ddbd
debc15ddbd
to87b5cc5568
87b5cc5568
to4afd55affd
4afd55affd
tod0498f0f6d
d0498f0f6d
tofbb5892ba9
fbb5892ba9
todee3ba3bf4
dee3ba3bf4
to934e22d286
934e22d286
to9e4a3489ac
9e4a3489ac
toc5b5d1b56e
c5b5d1b56e
to8dbc312a7f
8dbc312a7f
to06cf6c567e
06cf6c567e
tod6b9806868
d6b9806868
toe2cf836aa7
e2cf836aa7
tocc481a166c
cc481a166c
tof6b65f6c39
f6b65f6c39
to0988659010
0988659010
toeed37034dc
eed37034dc
to0c63ce6c3d
0c63ce6c3d
to31fe71299e
31fe71299e
tocd046498cf
cd046498cf
toda95edc9b8
da95edc9b8
tocbb301b489
cbb301b489
to895a7cf883
895a7cf883
to0c38a8d223
0c38a8d223
todd3af7f4d6
dd3af7f4d6
tofaae27cfa5
faae27cfa5
tob0650b21bb
b0650b21bb
to05439f13d7
05439f13d7
to15226aee9a
15226aee9a
to8c3a965ec1
8c3a965ec1
to62b4a4a17e
62b4a4a17e
to668adfa91d
668adfa91d
toc94b3370df
c94b3370df
to0feaa9d81e
0feaa9d81e
toc1dc894998
c1dc894998
tof22db6d8c1
f22db6d8c1
to6ccacfe230
6ccacfe230
to3008387741
3008387741
to1a7a32f019
1a7a32f019
to2e9f6aa379
2e9f6aa379
to89ab29ce33
89ab29ce33
to71239dc762
71239dc762
to1753a9df92
1753a9df92
to4636ed04ad
4636ed04ad
tod0e3234db3
d0e3234db3
to597943d919
597943d919
tofb544c6c41
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.