147 Commits
Author SHA1 Message Date
fisker Cheung 1a36a7defd Support configuration files with UTF-8 BOM (#20127) 2026-09-22 00:42:47 +08:00
fisker 99a18d762f Remove released changelog 2026-01-22 01:49:37 +08:00
Dom Poradaandfisker 6fe3de301a Include available printers in plugin type declarations (#18706)
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-22 01:07:32 +08:00
fisker 07d318183f Clean changelog_unreleased 2025-11-30 01:56:17 +08:00
fisker Cheung 27d6c645ca Revert previous change to getFileInfo (#18375) 2025-11-30 01:41:34 +08:00
fisker b580d60371 Clean changelog_unreleased 2025-11-27 19:32:57 +08:00
fisker Cheung d147f67ef1 Fix performance regression in doc printer (#18342) 2025-11-27 19:24:17 +08:00
fisker c4905e5be9 Clean changelog_unreleased 2025-11-27 16:31:35 +08:00
fisker Cheung 18c0f26bec Allow AstPath#call() to access property of nullish properties (#17860) 2025-11-17 20:56:20 +08:00
fisker Cheung db0d52cbe6 Add support for plugin.printer.printPrettierIgnored() (#18070) 2025-10-20 16:18:32 +08:00
fisker Cheung d6f7f142ab Allow plugin to override estree printer (#18072) 2025-10-16 05:47:59 +08:00
fisker Cheung 0f74812b5c Pass ancestors to plugin.print.canAttachComment() (#18055) 2025-10-12 19:56:44 +08:00
fisker Cheung afd57d3247 Allow parser.preprocess to return a Promise (#17679) 2025-09-12 05:03:05 +08:00
fisker f67b32ba66 Clean changelog_unreleased 2025-06-23 10:10:54 +08:00
SUZUKI Sosuke 0ef2086cc9 Fix English grammer in changelog_unreleased (#17635) 2025-06-22 14:58:35 +09:00
fisker Cheung 80a3b919ea Update linguist-languages to v8 (#17569) 2025-06-07 17:35:33 +08:00
fisker Cheungandautofix-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 Cheungandautofix-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 275fc2eb69 Improve isSupported() (#17490) 2025-05-20 13:19:15 +08:00
Will Nayesandfisker 21c6f43612 Ignore single files with @noformat / @noprettier (#17344)
Co-authored-by: fisker <lionkay@gmail.com>
2025-04-18 21:28:47 +08:00
JounQinandfisker 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 1c616b292e Don't interpret *.frag files as JavaScript files (#17178) 2025-02-26 15:53:21 +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
Sosuke Suzuki 3fe8152c5c Clean changelog_unreleased 2025-02-09 20:45:20 +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
SUZUKI Sosuke 4caa6302c0 Update changelog_unreleased for 3.5 (#17019) 2025-01-16 13:45:32 +09:00
fisker Cheung 6f12b94ae9 Fix tests for ts config (#16970) 2025-01-08 10:00:39 +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
Sosuke Suzuki f53791a2c8 Clean changelog_unreleased 2024-11-26 13:53:25 +09:00
SUZUKI Sosuke a3ba537295 Fix loading ESM-style shared config file in Node.js 23 (#16857)
* Return `.default` when Node.js 23 module feature is enabled

* Add changelog

* Add `ERR_REQUIRE_ASYNC_MODULE` to ignored error code
2024-11-25 21:33:48 +09:00
SUZUKI Sosuke 3cf3f5ac29 Make getPreferredQuote public (#16567) 2024-08-14 09:34:58 +09:00
fisker CheungandAlexander Kachkaev c60eb83d59 Stop mutate doc.parts when printing fill (#13315)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2024-07-26 19:51:00 +08:00
Sosuke Suzuki 2406fee590 Clean changelog_unreleased 2024-06-02 02:04:43 +09:00
Daniel Bayleyandfisker Cheung da772ff1f0 feat: add support for package.yaml config (#16157)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-05-10 18:36:44 +08:00
Sosuke Suzuki 6db66c53d9 Clean changelog_unreleased 2024-02-04 14:39:04 +09:00
SUZUKI Sosukeandfisker Cheung cc6435cc75 Use "json" parser for tsconfig.json by default (#16012)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-02-03 18:49:18 +08:00
fisker dda00cdd1d Clean changelog_unreleased 2024-01-17 11:32:07 +08:00
fisker Cheung c566c9df08 Fix parser inference (#15927) 2024-01-16 10:34:05 +08:00
Sosuke Suzuki c52f441846 Clean changelog_unreleased 2024-01-13 01:22:01 +09:00
SUZUKI Sosuke 5c6450db9c Clean changelog for 3.1.1 (#15889)
Clean changelogs
2024-01-07 23:52:00 +09:00
auvred f31f84a687 Fix getFileInfo and getSupportInfo type definitions (#15854) 2024-01-07 22:53:18 +09:00
fisker Cheung 44949eb5dc Support absolute path in config file (#15666) 2023-12-13 16:16:15 +08:00
fisker Cheung 5f0956bc30 Implement our own config explorer (#15663) 2023-12-05 15:00:43 +08:00
fisker Cheung 1759f5bd98 Fix changelog (#15703) 2023-11-23 10:52:30 +08:00
fisker Cheung e4a74c05f4 Fix argument passed to lilconfig.search() (#15363) 2023-11-16 01:05:57 +08:00
Sosuke Suzuki a3e1be82b6 Clean changelog 2023-11-13 12:04:23 +09:00
fisker Cheung 6c833b4445 Support URL as ignorePath in getFileInfo() (#15364) 2023-09-14 20:10:10 +08:00
fisker Cheung b2c33a4cec Accept URL in getFileInfo (#15360) 2023-09-06 15:49:22 +08:00