Commit Graph
9741 Commits
Author SHA1 Message Date
renovate[bot] e7a71f6c5a chore(deps): update dependency npm-run-all2 to v7.0.2 (#16995)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 14:10:55 +08:00
renovate[bot]andfisker 5e610717c0 chore(deps): update babel to v7.26.5 (#16989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-01-20 14:02:23 +08:00
renovate[bot]andfisker Cheung 10b25eecb7 chore(deps): update dependency ignore to v7.0.3 (#17025)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-01-20 13:58:44 +08:00
SUZUKI Sosuke 0cba62ee4d Comment out objectWrap for playground (#17026) 2025-01-18 22:45:07 +09:00
renovate[bot] 5dc3fac8d4 chore(deps): update dependency postcss to v8.5.1 (#17023)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 23:49:02 +08:00
renovate[bot] 36460be18f chore(deps): update dependency file-entry-cache to v10 (#16725) 2025-01-17 23:48:00 +08:00
renovate[bot] bd15c4b693 chore(deps): update dependency eslint-config-prettier to v10 (#17024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 07:15:09 +08:00
renovate[bot] a5e5fb578f chore(deps): update dependency @angular/compiler to v19.1.1 (#16990)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 07:05:15 +08:00
renovate[bot] 226150e590 chore(deps): update dependency magic-string to v0.30.17 (#16994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 07:04:23 +08:00
renovate[bot] 7905650919 chore(deps): update dependency execa to v9.5.2 (#16993)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 06:51:28 +08:00
renovate[bot] a832d149a0 chore(deps): update eslint related dependencies (#17002)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 06:50:47 +08:00
SUZUKI Sosuke 4caa6302c0 Update changelog_unreleased for 3.5 (#17019) 2025-01-16 13:45:32 +09:00
Paul DraperandSosuke 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 bbb65180e0 Replace "node-ignore"'s .ignores() with .checkIgnore() method (#16975) 2025-01-11 11:08:02 +08:00
fisker Cheung a962a26ba1 Improve FormatResultsCache (#16981) 2025-01-11 11:04:47 +08:00
fisker Cheung 59a64a3fb6 Replace chalk with node-style-text in release script (#16984) 2025-01-11 10:20:49 +08:00
renovate[bot] 78133d6d72 chore(deps): update dependency meriyah to v6.0.5 (#16986)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 10:20:20 +08:00
renovate[bot] 04839c3b57 chore(deps): update dependency typescript to v5.7.3 (#16985)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 18:33:44 +00:00
renovate[bot]andfisker c9726b96d1 chore(deps): update flow-parser (#16983)
Co-authored-by: fisker <lionkay@gmail.com>
2025-01-09 22:26:34 +08:00
fisker Cheung 8e8260e533 Improve angular ICU expression print (#16922) 2025-01-09 20:08:05 +08:00
renovate[bot] 9863d9e579 chore(deps): update dependency browserslist to v4.24.4 (#16982)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 02:33:29 +08:00
renovate[bot] 5c9d4e00ac chore(deps): update typescript-eslint to v8.19.1 (#16980)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 14:05:24 +08:00
renovate[bot] b3e9c6ed73 chore(deps): update eslint related dependencies (#16979)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 13:51:28 +08:00
dependabot[bot] f0771bf572 Bump xalvarez/prevent-file-change-action from 1.8.0 to 1.9.0 (#16963)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-08 13:39:18 +08:00
renovate[bot] 0aff61d637 chore(deps): update dependency browserslist to v4.24.3 (#16978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 13:37:21 +08:00
renovate[bot] b3603e5844 chore(deps): update dependency esbuild-visualizer to v0.7.0 (#16977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 11:31:09 +08:00
renovate[bot] 1d1148c6d3 chore(deps): update dependency esbuild to v0.24.2 (#16976)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 11:25:13 +08:00
renovate[bot] 743ae002ec chore(deps): update dependency fast-glob to v3.3.3 (#16974)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 10:57:59 +08:00
renovate[bot]andfisker fc8d5b9f9d chore(deps): update dependency ignore to v7 (#16973)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-01-08 10:57:26 +08:00
fisker Cheung 7310859f7d Update yarn to v4.6.0 (#16971) 2025-01-08 10:48:30 +08:00
renovate[bot] f5ed4bbec6 chore(deps): update dependency fast-glob to v3.3.3 (#16972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 10:47:19 +08:00
fisker Cheung 6f12b94ae9 Fix tests for ts config (#16970) 2025-01-08 10:00:39 +08:00
renovate[bot] 678bf05dc9 chore(deps): update dependency meriyah to v6.0.4 (#16969)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 09:56:49 +08:00
SUZUKI Sosuke 69a0172bdb Disable CI on MacOS x Node.js (#16965) 2025-01-06 08:16:49 +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
renovate[bot] d9d0999aac chore(deps): update typescript-eslint to v8.18.1 (#16950)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-23 15:04:53 +08:00
Norbert Elterandfisker 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
fisker Cheung 730770e29a Add tests for #16857 (#16940)
* Add tests for #16857

* Update comment
2024-12-21 15:32:30 +09:00
seyeong cf00f641b5 docs: Update Husky setup commands for PNPM users (#16943)
- Replace `npx husky init` with `pnpm exec husky init`
- Update installation command to use pnpm
- Add PNPM-specific pre-commit hook setup command
2024-12-21 15:31:49 +09:00
George Zahariev 0015a83d93 Suppport const type params in Flow (#16947) 2024-12-20 11:59:25 +09:00
Matic Jurgličandfisker 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
renovate[bot] a6cdd05466 chore(deps): update dependency graphql to v16.10.0 (#16941)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 16:02:46 +08:00
fisker Cheung a6fa4e933f Ignore website/ in knip (#16921) 2024-12-16 13:47:10 +08:00
renovate[bot] 6ac64e3df2 chore(deps): update typescript-eslint to v8.18.0 (#16937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 13:44:21 +08:00
fisker Cheung c450b6ad8e Remove TLA from jest.config.js (#16938) 2024-12-16 11:19:18 +08:00
renovate[bot] b40509c851 chore(deps): update babel to v7.26.3 (#16919)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 18:39:56 +08:00
fisker Cheung 401b010c16 Fix lint:knip script (#16918) 2024-12-06 16:12:08 +08:00