SUZUKI Sosuke
44a35adfa8
Don't remove uselsess \ in string literals ( #16563 )
2024-08-14 07:53:22 +09:00
fisker Cheung
820b47bf51
Fix changelog for #13315 ( #16524 )
2024-07-29 09:34:40 +01:00
Sung Ye In and fisker Cheung
4a39c117d1
Handle exception in needs parens with optional chaining ( #16500 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-07-27 15:11:27 +08:00
fisker Cheung and Alexander Kachkaev
c60eb83d59
Stop mutate doc.parts when printing fill ( #13315 )
...
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2024-07-26 19:51:00 +08:00
Sosuke Suzuki
a0cde0ad88
Clean changelog_unreleased
2024-07-13 21:27:55 +09:00
Christopher Dignam and fisker Cheung
988b43b72d
Add parens for nullish coalescing in tenary ( #16391 )
...
* add parens for nullish coalescing
fix #4873
* add function
* Update tests/format/js/nullish-coalescing/nullish_coalesing_operator.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
* update snapshot
* add changelog entry
* fix typo
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-06-18 01:47:28 +01:00
fisker
cdd480e1b6
Clean changelog_unreleased
2024-06-05 17:23:57 +08:00
fisker Cheung and Alexander Kachkaev
efc3d053ac
Avoid line breaks in import attributes ( #16349 )
...
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2024-06-05 17:01:58 +08:00
Sosuke Suzuki
2406fee590
Clean changelog_unreleased
2024-06-02 02:04:43 +09:00
fisker Cheung
26f1cd924e
Fix dynamic import when the module source is a template literal ( #16267 )
2024-05-11 09:02:24 +08:00
Keith Layne
f62bf4a191
Format embedded GQL in template literal statements ( #16064 )
...
Fixes #16007
2024-03-11 13:48:29 +09:00
Kevin Gibbons
d50a4e4639
allow linebreaks in member expressions in template interpolations ( #16116 )
...
* allow linebreaks in member expressions in template interpolations
* lint
* add changelog
2024-03-10 12:43:37 +09:00
fisker Cheung
c4af355521
Fix isStringKeySafeToUnquote ( #16058 )
2024-02-18 17:59:06 +08:00
Jaswanth-Sriram-Veturi and fisker
2576e11863
Improve formatting of React useImperativeHandle hook ( #16070 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2024-02-18 17:25:53 +08:00
SUZUKI Sosuke and fisker
a642ecb373
Unquote keys in import attributes ( #15888 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2024-02-07 14:54:39 +08:00
Sosuke Suzuki
d3be642d3f
Clean changelog_unreleased
2024-01-14 12:09:17 +09:00
SUZUKI Sosuke
cb8004f3f1
Fix formatting error on optional call expression and member chain ( #15920 )
2024-01-14 11:50:28 +09:00
Eelco Lempsink
0bfcb2d5a5
Fix css embed in JSX when using (only) a spread attribute ( #15896 )
2024-01-14 11:42:25 +09:00
Sosuke Suzuki
11aea0df1a
Clean changelog_unreleased
2024-01-13 04:18:09 +09:00
SUZUKI Sosuke
7e862bbc41
Fix formatting error on member chain ( #15915 )
2024-01-13 04:12:55 +09:00
Sosuke Suzuki
c52f441846
Clean changelog_unreleased
2024-01-13 01:22:01 +09:00
SUZUKI Sosuke
5c6450db9c
Clean changelog for 3.1.1 ( #15889 )
...
Clean changelogs
2024-01-07 23:52:00 +09:00
fisker Cheung
5b215c3d26
Fix comment print in if ( #15826 )
2024-01-03 11:20:17 +08:00
fisker Cheung
ff9c0839ac
Fix inconsistencies for ChainElements ( #15806 )
2024-01-03 11:11:32 +08:00
Kevin Gibbons
cb6fea81fb
Avoid introducing linebreaks in template interpolations ( #15209 )
2023-12-17 18:10:20 +08:00
fisker Cheung
ddf223a3ff
Fix formatting of ternary ( #15679 )
2023-12-13 16:14:44 +08:00
Seiya and fisker Cheung
224f70fb09
Stabilize member chain with empty line ( #15522 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-13 16:12:03 +08:00
0d1ffb3a91
Consistently use tabs in ternaries when useTabs is true ( #15662 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-12-10 17:10:57 +09:00
fisker Cheung
47ca2c1552
Keep empty import attributes and assertions ( #15757 )
2023-12-05 17:55:18 +08:00
fisker Cheung
7015f10d8e
Keep curly braces and from keyword in empty import statements ( #15756 )
2023-12-05 16:13:31 +08:00
Sosuke Suzuki
a3e1be82b6
Clean changelog
2023-11-13 12:04:23 +09:00
SUZUKI Sosuke and fisker Cheung
62d0c22638
Add 3.1 blog post ( #15503 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-11-13 12:01:29 +09:00
SUZUKI Sosuke
1d45bce625
Consistently format strings containing escapes ( #15525 )
2023-10-29 21:52:38 +09:00
SUZUKI Sosuke
f852b8010e
Improve formatting for assignment its left can break ( #15547 )
2023-10-28 14:29:17 +09:00
4aa5fd1c79
New Ternary Formatting: A Curious Case of the Ternaries ( #13183 )
...
Co-authored-by: Alex Rattray <rattrayalex@stripe.com >
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2023-10-09 10:44:30 +09:00
SUZUKI Sosuke
14ddf452c4
Update @babel/parser to 7.23.0 ( #15485 )
2023-10-08 22:26:13 +08:00
Lucas Santos
f4491b1274
Fix name case of selectors in styled components interpolation ( #15472 )
2023-09-30 15:57:53 +09:00
Luca Casonato and fisker Cheung
b78d7c7d2d
Disambiguate unary expr in instanceof and in ( #15468 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-09-28 14:56:55 +08:00
Alex Rattray and Alex Rattray
f25a592f57
Add indentation back to nested ternaries ( #9559 )
...
* Add indentation back to nested ternaries (except JSX)
* Add a real-world test case
* Add changelog entry
---------
Co-authored-by: Alex Rattray <rattrayalex@stripe.com >
2023-09-24 15:13:00 -04:00
fisker Cheung
411ef345a2
Fix comment between parentheses and function body ( #15326 )
2023-09-02 09:18:15 +08:00
Sosuke Suzuki
28578bf0a3
Clean changelog
2023-08-29 21:32:11 +09:00
fisker Cheung
f75f717c4e
Allow break require() argument ( #15256 )
2023-08-23 15:58:06 +09:00
Sosuke Suzuki
b35d6f6612
Remove changelog
2023-08-16 00:47:18 +09:00
Seiya
bf0b3040be
Break after equal on assignment if rhs is await/yield expression ( #15204 )
...
* add as-is test
* break after equal on assignment if rhs is wait
Discussion: #15196
* rename test file
* add as-is test
* treat YieldExpression
* add tests
* add changelog
* fix a bug
* add test for delegated yield
2023-08-06 13:02:40 +09:00
Sosuke Suzuki
75ac271661
Clean changelog
2023-08-03 15:12:46 +09:00
fisker Cheung
29854ca8da
Fix comments print in IfStatement ( #15076 )
2023-07-29 10:01:46 +08:00
auvred
8da37cce0b
Add parenthesis around leading multiline comment in return statement ( #15037 )
2023-07-16 14:15:08 +09:00
fisker Cheung
e2f4ce38f7
Improve cursor tracking ( #14812 )
2023-07-06 09:51:29 +08:00
Sosuke Suzuki
266344398c
Clean changelog
2023-07-06 01:47:41 +09:00
Pieter Vanderwerff and SUZUKI Sosuke
ff7b025197
Support trailing comments in function parameters for all parameter node types ( #14835 )
...
* Support trailing comments in function parameters for all parameter node types
* Create 14835.md
---------
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-07-03 02:47:13 +09:00