Commit Graph
133 Commits
Author SHA1 Message Date
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
fisker Cheung 7e45a92707 Accept URL in resolveConfig (#15354) 2023-09-06 14:54:36 +08:00
fisker CheungandSUZUKI Sosuke 56752e00e5 Accept URL in resolveConfigFile (#15332)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2023-09-04 19:59:42 +08:00
Sosuke Suzuki 28578bf0a3 Clean changelog 2023-08-29 21:32:11 +09:00
fisker Cheung a35008fb0a Support shared config that forbids require() (#15233) 2023-08-29 16:11:43 +08:00
fisker Cheung 7d56bc8752 Add preferUnplugged: true to package.json (#15169) 2023-08-28 10:25:36 +08:00
Sosuke Suzuki 75ac271661 Clean changelog 2023-08-03 15:12:46 +09:00
Rayandfisker Cheung 2b9efd5bf1 fix: add missing printer.preprocess definition (#15123)
* fix: allow preprocess to return a promise

* fix: types

* chore: format

* chore: changelog

* Update changelog_unreleased/api/15123.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* apply changes

* Update 15123.md

* Update 15123.md

* Simplify changelog

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-07-22 01:45:15 +09:00
auvredandfisker Cheung 9b9dbf6737 Add missing 'getVisitorKeys' method type definition for 'Printer' (#15125)
* Add missing 'getVisitorKeys' method type definition for 'Printer'

* add changelog

* Update changelog_unreleased/api/15125.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* prettier -w

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-07-22 01:44:03 +09:00
auvred ceed405395 Add typing to support readonly array properties of AST Node (#15127)
* Add typing to support `readonly` array properties of AST Node

* add changelog

* fix changelog

* add test case
2023-07-22 01:43:26 +09:00
Yue JINandfisker Cheung 7543021ba6 fix estree plugin type declaration (#15018)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-07-07 14:05:25 +08:00
Sosuke Suzuki 266344398c Clean changelog 2023-07-06 01:47:41 +09:00
SUZUKI Sosuke c9d62c0690 V3 blog post (#13436) 2023-07-05 21:59:08 +09:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
fisker CheungandSUZUKI Sosuke 54404fc96f Remove plugin search feature (#14759)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2023-05-05 10:31:25 +08:00