fisker Cheung
d4fd92e266
Bundle "Experimental CLI" ( #17396 )
2025-05-06 10:34:05 +08:00
fisker Cheung
59c635b939
Correctly parse <mj-style> and <mj-raw> ( #17400 )
2025-05-06 10:31:59 +08:00
Maxime Brazeilles and fisker
906565775b
Enabling CSS formatting within <mj-style> tag ( #17338 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-06 09:46:15 +08:00
SUZUKI Sosuke and autofix-ci[bot]
d3332e06d3
Preserve spaces between CSS words and embedded expression ( #17398 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-25 10:11:50 +08:00
Will Nayes and fisker
21c6f43612
Ignore single files with @noformat / @noprettier ( #17344 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-04-18 21:28:47 +08:00
fisker Cheung
b289ecbb19
Remove support for tupleAndRecord ( #17363 )
2025-04-17 04:53:05 +08:00
SUZUKI Sosuke
bd959e1757
Support @utility directive for Tailwind ( #17362 )
...
* Ignore operators in `@utility` directive
* Add tests for `@utility` directives
* Add changelog
2025-04-16 11:55:21 +09:00
fisker
0549e3c562
Add changelog
2025-04-14 23:40:54 +08:00
JounQin and fisker Cheung
c93393c0be
Add isSupported function support for language ( #17331 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: fisker <lionkay@gmail.com >
2025-04-14 09:15:43 +08:00
fisker Cheung
b3d1f8cdc2
Add mjml parser ( #17339 )
2025-04-14 08:12:53 +08:00
f3486cfbc5
Remove extra colon after track in angular @for control-flow ( #17280 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-04-14 08:10:04 +08:00
Florian Dieminger and fisker
91c563e323
Fix adjacent markdown syntax in blockquote ( #16596 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-03-28 20:00:57 +08:00
fisker Cheung
5d8337e8e0
Allow comment only JSONC files ( #17269 )
2025-03-20 23:01:10 +08:00
fisker Cheung
2b3710d805
Fix embedded format with cursorOffset ( #17254 )
2025-03-17 11:23:17 +08:00
fisker Cheung
44d7298f2d
Support TemplateLiteral introduced in Angular 19.2 ( #17238 )
2025-03-17 11:20:49 +08:00
fisker Cheung
edbc835c9f
Fix multiple comments in LogicalExpression and IntersectionType ( #17193 )
2025-03-05 02:48:25 +08:00
fisker Cheung
6a3c132be4
Add parentheses to numbers in optional member expression ( #17190 )
2025-03-05 02:47:46 +08:00
fisker Cheung
43d4f962f0
Fix missing parentheses in ConditionalTypeAnnotation ( #17196 )
2025-03-03 09:09:29 +08:00
fisker Cheung
1c616b292e
Don't interpret *.frag files as JavaScript files ( #17178 )
2025-02-26 15:53:21 +08:00
fisker Cheung
ff3b785214
Support import type attribute in TSImportType ( #16881 )
2025-02-26 15:29:05 +08:00
fisker Cheung
73d26d777d
Add parentheses to AssignmentExpression in class property keys ( #17145 )
2025-02-26 14:07:05 +08:00
ff3bb50881
Add parentheses to SequenceExpression in ReturnStatement and ExpressionStatement ( #17085 )
...
Co-authored-by: tongyu <tongyu10287@xwtec.cn >
Co-authored-by: fisker <lionkay@gmail.com >
2025-02-26 11:44:37 +09:00
Florian Dieminger and fisker Cheung
e01a084486
fix(markdown): fix strong emphasis ( #17143 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-02-26 11:30:48 +09:00
fisker Cheung
5dc7e8e54a
Accept URL as custom config file in resolveConfig ( #17167 )
2025-02-25 08:46:15 +08:00
fisker Cheung
e830ad36a7
Support URL in plugins options ( #17166 )
2025-02-25 08:45:25 +08:00
fisker
ecee6a0e52
Clean changelog_unreleased
2025-02-22 12:15:17 +08:00
fisker Cheung and Tatsunori Uchino
bf5aab8f2d
Revert "Use ESM entrypoint for require(ESM)" ( #17156 )
...
Co-authored-by: Tatsunori Uchino <tats.u@live.jp >
2025-02-22 12:07:28 +08:00
Sosuke Suzuki
3e5456fcf6
Clean changelog_unreleased
2025-02-13 22:14:28 +09:00
SUZUKI Sosuke
61c0129ce5
Invalidate outdated cache file ( #17100 )
2025-02-12 16:32:51 +09:00
Remco Haszing and SUZUKI Sosuke
9cf8ec23f6
Support dockercompose and github-actions-workflow ( #17101 )
...
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2025-02-12 11:41:11 +09:00
SUZUKI Sosuke
59e3696c9e
Remove blog-post-intro ( #17102 )
2025-02-12 02:57:12 +09:00
SUZUKI Sosuke
a4940b3296
Release blog for 3.5 ( #17020 )
...
* Add blog post 3.5
* Inline code blockg
* Regenerate
* Update
* Update author notation
* Update
* Update blog post
* Update
2025-02-09 20:57:22 +09:00
Sosuke Suzuki
3fe8152c5c
Clean changelog_unreleased
2025-02-09 20:45:20 +09:00
SUZUKI Sosuke
5ed5dc0b8a
Fix a link in changelog ( #17088 )
2025-02-09 19:58:53 +09:00
SUZUKI Sosuke
d8c21c58b3
Fix tag notation in changelog ( #17087 )
2025-02-09 19:42:24 +09:00
SUZUKI Sosuke
435b457064
Update author notation in BLOG_POST_INTRO_TEMPLATE ( #17062 )
...
Update `authors` notation
2025-02-01 08:44:35 +09:00
fisker Cheung
c13bfc75fb
Support read config from package.json with JSONC syntax on Bun ( #17041 )
2025-01-30 20:22:09 +08:00
Tatsunori Uchino and fisker Cheung
b64b0a88ba
Use ESM entrypoint for require(ESM) ( #16958 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-01-21 12:17:24 +08:00
Seiya and fisker Cheung
97d8115d18
Resolve rule of fill violation in JSX and add assertion. ( #16700 )
...
* add stricter assertion into fill()
* resolve rule of fill issue. some comments and naming can be problematic.
* cleanup
* update comments
* rename printWhitespace -> printStringOrLine
* refine isValidSeparator() a bit
* remove FIXME comment for fixed issue
* fix idempotency problem in MDX
* add changelog
* rename assertDocFill() -> assertDocFillParts()
* add test for assertDocFillParts()
* replace cleanDoc(doc) === "" by isEmptyDoc(doc)
* Update src/document/utils/assert-doc.js
Co-authored-by: fisker Cheung <lionkay@gmail.com >
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-01-21 13:09:32 +09:00
SUZUKI Sosuke
4caa6302c0
Update changelog_unreleased for 3.5 ( #17019 )
2025-01-16 13:45:32 +09:00
Paul Draper and Sosuke Suzuki
bef1d61a7a
Implement objectWrap config option ( #16163 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2025-01-15 16:44:45 +09:00
fisker Cheung
8e8260e533
Improve angular ICU expression print ( #16922 )
2025-01-09 20:08:05 +08:00
fisker Cheung
6f12b94ae9
Fix tests for ts config ( #16970 )
2025-01-08 10:00:39 +08:00
eed53fc29a
Break lines before binary operators ( #7111 )
...
* Add additional binary expression comment tests
Refs #3806
These cover a few edge cases I encountered while maintaining
`@btmills/prettier` over the last few years. I'm adding them up front to
demonstrate that the `experimentalOperatorPosition` changes in a later
commit have no effect on this formatting when the flag is not enabled.
* Define experimentalOperatorPosition flag
Refs #3806
This merely defines the flag. A future commit will use it in updated
logic.
* Add experimentalOperatorPosition default tests
Right now, this flag isn't implemented, so these tests duplicate the
existing behavior. I'm adding them now so that when I implement the
flag's logic in a future commit, the changed formatting will be obvious
in the diff and easier to review.
* Implement experimentalOperatorPosition flag
Fixes #3806 as requested in https://github.com/prettier/prettier/pull/7111#issuecomment-2252623779
The flag's tests were already added in a previous commit, so the test
changes you see in this commit are specifically due to the new flag's
implementation.
* Document experimentalOperatorPosition flag
* Change operator position option start|end
In response to https://github.com/prettier/prettier/pull/7111#discussion_r1729382119
* Add TS intersection line wrapping tests
This clones TypeScript's type union operator tests in `union-parens.ts`
and swaps the operators (& <-> |) to test the the type interesection
operator. It also runs intersection tests with the new
`experimentalOperatorPosition: "start"` flag. This does _not_ yet update
the implementation to consider the flag; to ease review, I'll make that
change in the next commit to isolate the impact of the change.
* Apply experimentalOperatorPosition: start to type intersections
The type union operator was already formatted at the beginning of lines
by default, so that logic didn't need to be updated.
* Update 7111.md
* Update tests after rebasing
I rebased from 1dfe28f85 to c7066780e to fix test failures related to
https://github.com/prettier/prettier/pull/16601 . The rebase applied
cleanly, and this was the only change to tests. Since the PR has
already been approved, I'll keep this as a separate commit rather than
squashing into the prior commits.
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2025-01-04 01:30:51 +09:00
Norbert Elter and fisker
84de783ce6
Add support for TS config files ( #16828 )
...
* feat: prettier.config.ts
* revert
* feat: add flag
* fix: remove experimental warning
* Revert changes
* Add tests
* Update docs
* Only test on Node.js v22
* Add changelog
* Update docs
* Update examples
* Fix changelog
* Fix command
* Name `loadJs` back
* Fix
---------
Co-authored-by: fisker <lionkay@gmail.com >
2024-12-21 15:39:45 +09:00
fisker Cheung
66a77da2c5
Support Vue .prop shorthand ( #16920 )
2024-12-21 15:36:50 +09:00
Seiya
a7ddbdb899
Consitent break for comma seperated value ( #16907 )
...
* add softline before root paren group
* add changelog
* make conservative
2024-12-21 15:36:36 +09:00
George Zahariev
0015a83d93
Suppport const type params in Flow ( #16947 )
2024-12-20 11:59:25 +09:00
Matic Jurglič and fisker
ed94e9415b
Handle <style> and <pre> tags in Handlebars/Glimmer ( #15087 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2024-12-16 16:28:32 +08:00
Tatsunori Uchino
88c210e844
Treat U+FF5E as CJK punctuation ( #16832 )
2024-12-16 16:26:22 +08:00