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 and autofix-ci[bot]
95ef24d1f0
Support "Discard Bindings" proposal ( #17708 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-04 15:41:42 +08:00
renovate[bot] and fisker
034f826e17
chore(deps): update flow-parser ( #17755 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-07-26 12:12:03 +08:00
renovate[bot] and fisker
d709bde974
chore(deps): update dependency meriyah to v6.1.4 ( #17695 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-07-02 21:54:55 +08:00
renovate[bot] and fisker
a04ec1196f
chore(deps): update babel to v7.27.7 ( #17684 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-27 07:15:08 +08:00
renovate[bot] and fisker
09370615a4
chore(deps): update dependency meriyah to v6.1.2 ( #17634 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-23 07:46:25 +08:00
fisker Cheung
dd8d59b983
Fix isTypeModuleObjectExpression ( #17599 )
2025-06-20 04:11:49 +08:00
renovate[bot] and fisker
c209924e4e
chore(deps): update typescript-eslint to v8.34.1 ( #17608 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-18 03:21:56 +08:00
renovate[bot] and fisker
4a4639d308
chore(deps): update dependency meriyah to v6.1.1 ( #17607 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-17 14:38:57 +08:00
fisker Cheung
98b7dd03ab
Add checkPrivateFields: false to acorn parser ( #17594 )
2025-06-12 04:52:36 +08:00
renovate[bot] and fisker
e306eb0ce7
chore(deps): update dependency espree to v10.4.0 ( #17586 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-10 21:27:57 +08:00
fisker Cheung
2c7f02a7ab
Enable decorators tests on flow and typescript parser ( #17484 )
2025-06-09 16:28:45 +08:00
renovate[bot] and fisker
dcb0e109ff
chore(deps): update dependency acorn to v8.15.0 ( #17580 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-06-09 02:11:18 +08:00
fisker Cheung
4df0a871ca
Add hermes parser ( #17520 )
2025-05-29 15:30:45 +08:00
fisker Cheung
242b524eb1
Fix optional chaining as computed key ( #17486 )
2025-05-28 03:26:56 +08:00
renovate[bot] and fisker
55405ce082
chore(deps): update babel to v7.27.3 ( #17523 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-28 03:18:28 +08:00
fisker Cheung
9e814108ca
Add oxc-ts parser ( #17483 )
2025-05-27 13:32:23 +08:00
fisker Cheung
230bba53a9
Forbid new line before arrow ( #17516 )
2025-05-27 10:46:57 +08:00
fisker Cheung
40d9a7e2b0
Update oxc-parser to v0.72.0 ( #17517 )
2025-05-27 09:56:21 +08:00
fisker Cheung and autofix-ci[bot]
c26d23c955
Add oxc parser ( #17472 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-27 09:35:31 +08:00
fisker Cheung
441cb1e132
Fix comments in tagged template literal ( #17510 )
2025-05-27 09:08:27 +08:00
2e78cb5834
Support type cast comments for acorn parser ( #17491 )
...
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-20 14:38:34 +08:00
fisker Cheung
2349a6ee6f
Fix inconsistent assignment format ( #17469 )
2025-05-15 11:27:32 +08:00
fisker Cheung and autofix-ci[bot]
b5378edeeb
Fix inconsistent member chain format ( #17470 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-15 11:27:22 +08:00
Arnaud Barré and fisker
98a06cd5b9
Preserve empty directive in JS for non Babel parsers ( #17461 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2025-05-15 02:17:06 +09:00
o-m12a
d4684bf10e
Add more tests for reserved words ( #17416 )
2025-04-29 22:41:13 +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
fisker Cheung
b289ecbb19
Remove support for tupleAndRecord ( #17363 )
2025-04-17 04:53:05 +08:00
fisker Cheung
40a04dd216
Remove special logic for SequenceExpression as arrow function body ( #17187 )
2025-03-06 21:18:28 +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
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
fisker Cheung
64e7dab1fd
Fix links to Prettier/Babel/Jest website ( #17079 )
2025-02-15 12:18:09 +08:00
Louis Trezzini
ff5c889a7e
fix test with invalid name ( #17075 )
2025-02-08 10:03:33 +08:00
fisker Cheung
88d670ecd4
Add tests for import.defer() ( #17027 )
2025-01-20 14:19:35 +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
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
fisker Cheung
c450b6ad8e
Remove TLA from jest.config.js ( #16938 )
2024-12-16 11:19:18 +08:00
fisker Cheung
6b582a0619
Improve string print perfomance ( #16763 )
2024-11-04 15:24:02 +08:00
SUZUKI Sosuke
c10d7d14fa
Fix if-else formatting for JSDoc type casting ( #16798 )
...
Keep block comment position for block less else
2024-10-29 13:08:43 +09:00
renovate[bot] and fisker
4e1a313064
chore(deps): update dependency acorn to v8.14.0 ( #16793 )
...
* chore(deps): update dependency acorn to v8.14.0
* Fix tests
* Fix test
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2024-10-28 12:23:14 +08:00
renovate[bot] and fisker
89d5360578
chore(deps): update flow-parser ( #16764 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2024-10-18 23:18:37 +08:00
fisker Cheung
b19139acb7
Support TLA for typescript parser ( #16729 )
2024-10-18 21:11:55 +08:00
fisker Cheung
ab00c1c919
Remove support for "importReflection" ( #16705 )
2024-10-08 22:03:37 +08:00
renovate[bot] and fisker
c0f98f59f8
chore(deps): update dependency typescript to v5.6.2 ( #16669 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2024-09-29 17:58:15 +08:00
fisker Cheung
07b468917e
Remove blank lines between imports ( #16450 )
2024-09-29 17:56:37 +08:00
fisker Cheung
4b9c16703c
Remove support for DecimalLiteral ( #16643 )
2024-09-29 17:13:12 +08:00
Mark Amery and fisker Cheung
d28d40ac0c
Reduce how much text needs to be diffed when computing cursor positions ( #15709 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-09-27 21:35:32 +08:00
fisker Cheung
0f9a1aefee
Rewrite tests for importing JSON ( #16517 )
2024-09-27 20:46:37 +08:00