Yusril A
0da474ed1d
Update json schema store url to latest ( #18225 )
2025-11-17 02:44:44 +08:00
renovate[bot] and fisker
3081896171
chore(deps): update dependency camelcase to v9 ( #18227 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-11-16 20:10:48 +08:00
fisker Cheung
01ce265822
Refactor doc modules ( #18191 )
2025-11-03 01:52:26 +08:00
fisker Cheung
cf35887b99
Fix plugin name in options ( #18082 )
2025-10-16 07:42:24 +08:00
fisker Cheung
d6f7f142ab
Allow plugin to override estree printer ( #18072 )
2025-10-16 05:47:59 +08:00
fisker Cheung
1679b69cdc
Remove snapshot-diff ( #18019 )
2025-10-09 22:00:33 +08:00
Seiya and fisker
99cd3d7426
Improve emoji width measurement ( #17813 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-09-18 20:12:26 +08:00
fisker Cheung
afd57d3247
Allow parser.preprocess to return a Promise ( #17679 )
2025-09-12 05:03:05 +08:00
renovate[bot] and fisker
a6bbdad8ca
chore(deps): update dependency jest to v30.1.1 ( #17819 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-08-30 15:36:22 +08:00
fisker Cheung
24921a4e56
Fix typescript config test on Node.js v22 ( #17787 )
2025-08-11 16:02:28 +08:00
renovate[bot] and fisker
bcaa3003b2
chore(deps): update dependency linguist-languages to v8.1.0 ( #17780 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-08-08 12:46:09 +08:00
fisker Cheung
80a3b919ea
Update linguist-languages to v8 ( #17569 )
2025-06-07 17:35:33 +08:00
fisker Cheung
f03061ae8d
Fix experimental-cli test ( #17570 )
2025-06-06 03:06:03 +08:00
fisker Cheung and autofix-ci[bot]
7fb9875413
Allow plugin override builtin parsers when inferring parser ( #17549 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 17:23:49 +08:00
fisker Cheung and autofix-ci[bot]
d49444352a
Fix plugin loading in prettier.getFileInfo() ( #17548 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 17:10:39 +08:00
fisker Cheung
c69b1d7d38
Add test for editorconfig bug ( #17503 )
2025-06-02 22:54:21 +08:00
fisker Cheung
d8ab2b1f66
Fix exit code and result message when parser can not infer ( #17505 )
2025-06-02 22:53:37 +08:00
Leonardo Montini and fisker
abb43bf287
Forbid use --config and --no-config together ( #12221 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-27 09:16:26 +08:00
renovate[bot] and fisker
bba5dc430c
chore(deps): update dependency file-entry-cache to v10.1.0 ( #17438 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-27 09:06:53 +08:00
fisker Cheung
275fc2eb69
Improve isSupported() ( #17490 )
2025-05-20 13:19:15 +08:00
renovate[bot] and fisker
8f666df193
chore(deps): update dependency linguist-languages to v7.30.0 ( #17435 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-07 10:15:15 +08:00
fisker Cheung
d4fd92e266
Bundle "Experimental CLI" ( #17396 )
2025-05-06 10:34:05 +08:00
fisker Cheung and autofix-ci[bot]
38dc5dee18
Parse Prettier config with yaml ( #17410 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-06 08:18:50 +08:00
fisker Cheung
e7202d63e7
Refactor mockable functionalities ( #17392 )
2025-04-23 23:42:19 +08:00
fisker Cheung
6f4c89f8f9
Update snapshot format for CLI test ( #17386 )
2025-04-21 23:34:55 +08:00
fisker Cheung
42346f2ef7
Run CLI test in child_process ( #17382 )
2025-04-21 18:58:44 +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
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
fisker Cheung
fe536ff6b1
Remove extra lines in --file-info and --support-info ( #17332 )
2025-04-09 15:23:50 +08:00
fisker Cheung
377b231a5d
Bundle package into dist/prettier/ ( #15825 )
2025-04-09 08:38:46 +08:00
fisker Cheung
39e9cabdf5
Support cursorOffset in prettier.__debug.printToDoc() ( #17256 )
2025-03-17 11:16:46 +08:00
renovate[bot] and fisker
27196f9be0
chore(deps): update dependency linguist-languages to v7.29.0 ( #17222 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-03-11 13:49:13 +08:00
fisker Cheung
9dac37c608
Replace benchmark with tinybench ( #17132 )
2025-02-26 16:06:02 +08:00
fisker Cheung
1c616b292e
Don't interpret *.frag files as JavaScript files ( #17178 )
2025-02-26 15:53:21 +08:00
fisker Cheung
9eb1b341cd
Add assertions to location sensitive nodes ( #17141 )
2025-02-26 15:52:31 +08: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 Cheung
64e7dab1fd
Fix links to Prettier/Babel/Jest website ( #17079 )
2025-02-15 12:18:09 +08: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
renovate[bot]
36460be18f
chore(deps): update dependency file-entry-cache to v10 ( #16725 )
2025-01-17 23:48:00 +08: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
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
730770e29a
Add tests for #16857 ( #16940 )
...
* Add tests for #16857
* Update comment
2024-12-21 15:32:30 +09:00
fisker Cheung
07b468917e
Remove blank lines between imports ( #16450 )
2024-09-29 17:56:37 +08:00
fisker Cheung
69f419213e
Revert "Pin Node.js to v22.6.0" ( #16642 )
2024-09-27 20:26:48 +08:00
Marcus Pettersen Irgens and fisker Cheung
5bb04801a2
Ignore files in the Jujutsu directory ( #16684 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-09-27 19:53:37 +08:00
Seiya
14d7f1536f
Fix rule of fill violations in utils and tests ( #16656 )
2024-09-27 17:59:35 +08:00