SUZUKI Sosuke
8740cedc97
Update @prettier/cli to 0.2.0 ( #15792 )
...
* Update `@prettier/cli` to 0.2.0
* Update yarn.lock
2023-12-14 13:39:04 +09:00
Sosuke Suzuki
f80a7dc8dc
Merge branch 'main' into next
2023-12-14 12:59:20 +09:00
Mark Amery
23b3ca2f52
Fix formatDiagnostic in tests/dts/unit/run.js ( #15790 )
2023-12-13 22:55:39 +02:00
Max Gurela and fisker
2c689f3e30
fix(printer-glimmer): preserve path literal segments ( #15605 )
...
* fix(glimmer): preserve path literal segments
This change fixes scenarios where an input handlebars file containing literal segments would be
reformatted to unwrap the literal segments, causing syntax errors in the resulting output. An
example of this is below:
```
<!-- wrong: input.funky<api!response -->
{{input.[funky<api!response]}}
<!-- wrong: input.this one has spaces -->
{{input.[this one has spaces]}}
```
This also handles a scenario where the input contained deprecated '/' delimited paths, ensuring
that those paths are not wrapped with brackets. This exists to prevent breaking an existing test
`sub-expressions.hbs`. Handling it this way does lead to some minor ambiguity since glimmer does
not support these paths, but the ambiguity is probably better than breaking them entirely.
fixes #14207 , preventing removal of brackets where necessary
---------
Co-authored-by: fisker <lionkay@gmail.com >
2023-12-13 16:18:24 +08:00
fisker Cheung
44949eb5dc
Support absolute path in config file ( #15666 )
2023-12-13 16:16:15 +08:00
fisker Cheung
ddf223a3ff
Fix formatting of ternary ( #15679 )
2023-12-13 16:14:44 +08:00
renovate[bot]
3728294246
chore(deps): update typescript-eslint to v6.14.0 ( #15695 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-13 16:14:03 +08:00
fisker Cheung
8227c0a69e
Fix formatting of prettier-ignored unclosed elements ( #15748 )
2023-12-13 16:13:26 +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
Mark Amery
be2fe89b43
Add a bunch more cursor position test cases ( #15787 )
2023-12-13 13:18:20 +08:00
e04f0b023b
Update contributing.md to mention options philosophy ( #15648 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2023-12-12 23:34:27 +09:00
renovate[bot]
c1ebae2e83
chore(deps): update dependency typescript to v5.3.3 ( #15701 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-10 18:51:11 +08:00
Sosuke Suzuki
711e7b5759
Fix yarn.lock
2023-12-10 17:38:15 +09:00
Sosuke Suzuki
1de9db5c88
Git blame ignore 3.1.1
2023-12-10 17:37:52 +09:00
Sosuke Suzuki
1178b4dff2
Bump Prettier dependency to 3.1.1
2023-12-10 17:37:52 +09:00
Sosuke Suzuki
ea4c9aff19
Update dependents count
2023-12-10 17:37:31 +09:00
Sosuke Suzuki
b86701dd1d
Release 3.1.1
2023-12-10 17:33:43 +09:00
fisker Cheung and SUZUKI Sosuke
c97480c9a9
Use attributes instead of deprecated assertions ( #15758 )
...
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-12-10 17:13:03 +09: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
Sosuke Suzuki
af94b8e56c
Release 4.0.0-alpha.4
2023-12-10 17:03:40 +09:00
Sosuke Suzuki
80f2578b1d
Merge branch 'main' into next
2023-12-10 16:42:41 +09:00
Klaus Hott Vidal
5f7aedc1cf
fix example to fit the actual experimentalTernaries behaviour ( #15747 )
2023-12-08 16:35:35 +02:00
Mark Amery
1e30f66f39
Remove claim, untrue since over 5 years ago, that cursorOffset is incompatible with rangeStart/rangeEnd ( #15750 )
2023-12-08 16:35:02 +02:00
Georgii Dolzhykov
39e4e7bf40
Add cursorOffset to Playground ( #15751 )
2023-12-08 16:34:26 +02:00
Sander Maijers and fisker
8e816ade2e
Allow skipping symlink patterns, to avoid raising a fault ( #15533 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-12-08 01:54:18 +09:00
Georgii Dolzhykov
2ca5d757b7
Fix expect call in dts test ( #15766 )
2023-12-06 00:10:45 +02:00
renovate[bot]
15c742844f
chore(deps): update dependency flow-parser to v0.223.3 ( #15760 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 19:36:55 +08:00
renovate[bot]
d3b3d4f5e3
chore(deps): update dependency hermes-parser to v0.18.0 ( #15761 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 18:27:18 +08:00
fisker Cheung
389225527c
Remove outdated code ( #15759 )
2023-12-05 18:18:56 +08: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
fisker Cheung
4c3cfa7a81
Support TypeScript 5.3 ( #15718 )
2023-12-05 15:39:24 +08:00
fisker Cheung
5f0956bc30
Implement our own config explorer ( #15663 )
2023-12-05 15:00:43 +08:00
fisker Cheung
117c04fcc8
Simplify mockable ( #15729 )
2023-12-05 14:39:11 +08:00
renovate[bot]
fc440b4b66
chore(deps): update dependency eslint-config-prettier to v9.1.0 ( #15754 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:24:03 +08:00
renovate[bot]
c453fc925f
chore(deps): update babel to v7.23.5 ( #15755 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:23:18 +08:00
renovate[bot]
69f550ff7f
chore(deps): update dependency @babel/parser to v7.23.5 ( #15753 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:06:56 +08:00
renovate[bot]
96aa09b8cf
chore(deps): update dependency postcss to v8.4.32 ( #15752 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:06:18 +08:00
Klaus Hott Vidal and Georgii Dolzhykov
0d6db6e98b
documenting the hardline within an ifBreak odd behaviour ( #15746 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2023-12-05 10:47:43 +08:00
Georgii Dolzhykov
96e8120667
prettier.__internal.inferParser for new CLI (#15745 )
...
* prettier.__internal.inferParser for new CLI
* Don't resolve plugins if parser found in options
2023-12-03 10:02:39 +02:00
Sosuke Suzuki
97c53fb8b6
Release 4.0.0-alpha.3
2023-12-01 14:31:40 +09:00
SUZUKI Sosuke
886a737bd4
Update @prettier/cli to 1.0.5 ( #15739 )
...
Update `@prettier/cli`
2023-12-01 14:09:55 +09:00
Sosuke Suzuki
b02c454f0a
Merge branch 'main' into next
2023-12-01 14:05:14 +09:00
SUZUKI Sosuke
56408635eb
Add simple lint script for blog post ( #15737 )
2023-12-01 13:29:30 +09:00
SUZUKI Sosuke
da1d4e9301
Fix blog date and add truncate comment ( #15736 )
2023-12-01 01:03:47 +08:00
1632e25b17
Added a blog post about the new CLI ( #15731 )
...
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-01 00:48:53 +08:00
fisker
8ad815de71
Release 4.0.0-alpha.2
2023-12-01 00:46:45 +08:00
fisker
503b890c6a
Update @prettier/cli
2023-12-01 00:46:07 +08:00
renovate[bot]
c6d62e1fd4
chore(deps): update dependency jest-light-runner to v0.6.0 ( #15734 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-30 19:33:18 +08:00
fisker
8dd2e9f323
Release 4.0.0-alpha.1
2023-11-30 14:38:49 +08:00