Commit Graph
107 Commits
Author SHA1 Message Date
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
fisker Cheung 1107ae6bd0 Suggest use named import in docs and changelogs (#14758) 2023-04-25 16:22:47 +08:00
fisker Cheung d6f30ad3d9 Build: add default exports to ESM bundles (#14757) 2023-04-25 15:37:56 +08:00
fisker Cheung 8edd605f18 Fix bultin plugins, keep public plugins sync (#14756) 2023-04-25 10:45:08 +08:00
fisker Cheung b5043bcca5 Stop formatting unknown code with babel parser (#14718) 2023-04-21 13:12:11 +08:00
fisker Cheung fc81cc13cb Fix plugin loading cache (#14576) 2023-03-24 13:19:18 +08:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker Cheung 413a76d798 Remove plugins from standalone build (#14570) 2023-03-23 15:18:10 +08:00
fisker Cheung 134f6078e1 Add document/public.js to export public apis, remove internal utils (#14456) 2023-03-07 08:54:11 +08:00
SUZUKI Sosukeandfisker Cheung 813df18df6 Moves @types/prettier to this repository (#14212)
* Rename `types` to `thirs-party-types`

* Copy `index.d.ts` from `@types/prettier`

* Make public APIs async

* Add missing `formatAST`

* Fix `CustomParser`

* Fix `Parser.parse` signature

* Add comment

* Add `standalonw.d.ts`

* first implement

* Fix path

* Add missing parser `.d.ts`

* Fix

* Fix path

* Introduce valid tests

* Add unit tests for dts files

* Add unit tests

* Simplify unit testing

* Tweaks structures

* Revert needless change

* Fix types path

* Introduce `ts-expect`

* Fix doc utils api

* Add AstPath API

* Fix API

* Fix tests

* Fix changelog

* Move dts

* Update module specifiers

* Remove generate dts config file

* Update build scripts

* Fix type errors

* Refactor with namespace imports

* Update comments

* Fix build script

* Improve build script

* `typing` -> `types`

* Clean up

* Minor tweak

* Minor tweak

* Modify `exports` field

* Fix paths in builder

* Refactor

* Refactor

* Address review

* Update changelog

* Address reviews

* Remove `since` from tests

* Improve utils type def

* Mark deprecated methods

* Address review

* Move docs types

* Address review

* Update c8 config

* Minor tweak

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-02-23 22:15:18 +09:00
fisker Cheung e9ae01a6da Update prettier.util.{isPreviousLineEmpty,isNextLineEmpty} (#14320) 2023-02-10 14:23:42 +08:00
fisker Cheung caf6f6c64c Add getNextNonSpaceNonCommentCharacter to prettier.util (#14317) 2023-02-09 17:21:36 +08:00
fisker Cheung a26e8ace46 Resolves config by default in getFileInfo() (#14108) 2023-01-30 09:59:19 +08:00
fisker Cheung 52fbecc89b Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	yarn.lock
2022-11-23 19:44:31 +08:00
Sosuke Suzuki 9c45de6842 Clean changelog 2022-11-23 14:11:13 +09:00
fisker CheungandSosuke Suzuki 31a796d32c Restructure package files, add exports (#13530)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-10-06 15:20:19 +08:00
Georgii Dolzhykov 6d4d011252 Fix unstable embedded template literals (#13532) 2022-09-26 16:24:41 +03:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
fisker Cheung 6712071e24 Stop passing undefine and null to printer (#13397) 2022-08-29 16:10:50 +03:00
fisker Cheung cd8c49d78e Mention @prettier/sync in changelog (#13297) 2022-08-23 16:10:40 +08:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
fisker Cheung a054eb3868 Make prettier.clearConfigCache async (#13265) 2022-08-11 14:13:13 +08:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +08:00
fisker Cheung 7abc9bcb07 Remove stripTrailingHardline option in textToDoc (#13220) 2022-08-07 18:15:24 +08:00
Georgii Dolzhykovandfisker Cheung 4d5b645e0e Support async parser for embedded languages (#13211)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-07 00:45:06 +08:00
fisker 5daa8eba6c Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	.gitignore
#	website/playground/PrettierFormat.js
#	website/static/worker.js
2022-08-06 11:42:33 +08:00
fisker Cheung 33e621133c Remove prettier.doc.builders.concat (#13203) 2022-08-06 11:03:47 +08:00