fisker Cheung
80a3b919ea
Update linguist-languages to v8 ( #17569 )
2025-06-07 17:35:33 +08:00
fisker Cheung
275fc2eb69
Improve isSupported() ( #17490 )
2025-05-20 13:19:15 +08:00
JounQin and fisker 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
e830ad36a7
Support URL in plugins options ( #17166 )
2025-02-25 08:45:25 +08:00
Lehoczky Zoltán and fisker Cheung
6a612520bc
Migrate from Docusaurus 1 to Docusaurus 3 ( #17043 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-01-30 10:16:21 +08:00
Yuhei Yasuda
5c60b9ef4a
Fix code example for prettier.resolveConfig ( #16525 )
2024-08-10 09:52:30 +08:00
fisker Cheung
09024bac75
Add @prettier/sync to docs ( #15977 )
2024-01-28 16:31:36 +08:00
fisker Cheung
ff83d55d05
Update documentation for prettier.resolveConfig() ( #15910 )
2024-01-14 10:03:16 +00:00
Mark Amery
1e30f66f39
Remove claim, untrue since over 5 years ago, that cursorOffset is incompatible with rangeStart/rangeEnd ( #15750 )
2023-12-08 16:35:02 +02:00
fisker Cheung
5f0956bc30
Implement our own config explorer ( #15663 )
2023-12-05 15:00:43 +08: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 Cheung and SUZUKI Sosuke
56752e00e5
Accept URL in resolveConfigFile ( #15332 )
...
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-09-04 19:59:42 +08:00
fisker Cheung
0d04d78367
Replace cosmiconfig with lilconfig ( #15232 )
2023-09-02 01:02:22 +08:00
fisker Cheung
958379ce52
Update v3 blog post ( #15028 )
2023-07-08 08:23:19 +08:00
fisker Cheung
1107ae6bd0
Suggest use named import in docs and changelogs ( #14758 )
2023-04-25 16:22:47 +08:00
fisker Cheung
578f093d30
Accept multiple --ignore-paths ( #14332 )
2023-04-10 10:51:46 +08:00
fisker Cheung
a26e8ace46
Resolves config by default in getFileInfo() ( #14108 )
2023-01-30 09:59:19 +08:00
fisker Cheung
2d23d33a40
Remove since from options and languages ( #13699 )
2022-10-23 11:18:36 +08:00
fisker Cheung and Sosuke Suzuki
31a796d32c
Restructure package files, add exports ( #13530 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2022-10-06 15:20:19 +08:00
fisker Cheung
822f354ceb
Update docs ( #13309 )
2022-09-26 19:28:43 +08:00
fisker Cheung
a054eb3868
Make prettier.clearConfigCache async ( #13265 )
2022-08-11 14:13:13 +08:00
fisker Cheung and Georgii 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
0e0f879c1a
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# package.json
# scripts/release/yarn.lock
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/expand-patterns.js
# src/cli/format.js
# src/cli/utils.js
# src/language-js/index.js
# src/language-js/parse/postprocess/index.js
# src/language-js/parse/postprocess/typescript.js
# tests/format/misc/errors/invalid/jsfmt.spec.js
# tests/integration/__tests__/__snapshots__/support-info.js.snap
# website/playground/sidebar/SidebarOptions.js
# yarn.lock
2022-06-19 11:12:22 +08:00
fisker Cheung
59ec4f2ef4
Bump Prettier dependency to 2.7.0
2022-06-14 14:33:25 +08:00
fisker Cheung
193365eb71
Load plugins asynchronously ( #12790 )
2022-05-06 09:27:54 +08:00
fisker Cheung
34fadbe67d
Remove {resolveConfig,resolveConfigFile,getFileInfo}.sync ( #12788 )
2022-05-05 19:15:08 +08:00
fisker Cheung
c6d6b25833
prettier.{format,formatWithCursor,check}() are now async (#12574 )
2022-04-29 14:22:24 +08:00
Georgii Dolzhykov
109492a497
Clarify prettier.format docs ( #10499 )
2021-03-10 02:54:50 +02:00
554b15473d
Document recommended setup and improve docs overall ( #8510 )
...
Co-authored-by: Jed Fox <git@twopointzero.us >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-06-28 09:47:29 +08:00
fisker Cheung
eb6ff31c26
Docs: Update resolveConfigFile usage example ( #6873 )
2020-06-18 20:09:10 +08:00
fisker Cheung
fbf0beb716
Fix inferredParser when calling getFileInfo() with resolveConfig: true ( #8551 )
2020-06-17 18:47:56 +08:00
Georgii Dolzhykov
9dad95b35f
Bump Prettier dependency to 2.0.0
2020-03-21 22:09:54 +02:00
fisker Cheung
31c5798e59
Memoize loadPlugins ( #7485 )
2020-02-27 16:43:02 +02:00
Georgii Dolzhykov
cf3d9f0b80
api: remove the version parameter of getSupportInfo ( #7620 )
...
* api: remove the version parameter of getSupportInfo
* add changelog entry
* remove mapDeprecated
* Update pr-7620.md
* remove the first parameter completely
* Update api.md
* add default value for opts just to be on the safe side
2020-02-23 02:47:17 +02:00
Jack Steam and Georgii Dolzhykov
a858a315e9
Clarify API docs ( #7402 )
...
* Clarify API docs
It is not immediately obvious how to set the language (parser), hopefully this will save others time.
* improve wording
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-01-25 16:19:42 +02:00
fisker Cheung
304acbea01
Change external links to https ( #6874 )
2019-11-08 14:49:32 +03:00
Kai Cataldo
df45e12c5c
API: add resolveConfig option to getFileInfo() ( #6666 )
...
* Add useConfig option to getFileInfo()
* useConfig -> resolveConfig
2019-10-23 13:56:59 +02:00
Sosuke Suzuki
60d6f139a9
Docs: update docs to follow #6665 ( #6670 )
2019-10-16 18:53:01 +02:00
Sosuke Suzuki
1aef2b13f4
Website: Update documentation of resolveConfigFile ( #6568 )
2019-10-02 17:34:58 +02:00
Jimmy Gaussen
a8d423b18c
docs: remove redundant "./" from relative links ( #5741 )
...
Fixes #5740
fixed with `sed -i "s#(\./#(#" docs/*.md website/versioned_docs/version-stable/*.md`
2019-01-10 12:06:41 -02:00
Wei-Wei Wu
91c20f7fbe
Rename "babylon" with "babel" ( #5647 )
2018-12-27 21:05:19 +08:00
Alexander Kachkaev
a18d80253a
Restore --check option docs ( #5674 )
2018-12-25 16:01:02 +08:00
Alexander Kachkaev
439b1649ff
Temporary remove --check docs until 1.16 is released to avoid confusion ( #5671 )
...
Context: https://github.com/prettier/prettier/pull/5629#issuecomment-448933238
2018-12-21 06:27:17 -05:00
Alexander Kachkaev
711c6d78a8
Add --check option ( #5629 )
2018-12-19 22:03:30 +08:00
Alexander Kachkaev
b87fe4cf22
Add option to enforce certain line endings ( #5327 )
2018-11-06 22:47:13 +08:00
Ika
e72cb538f9
fix: update flow support info ( #4943 )
2018-08-08 23:47:49 +08:00
Ika
11275bfa9d
docs: fix linting
2018-05-29 10:16:07 +08:00
Berton Zhu
bfa191f07c
Update example code in Doc to v1.13 ( #4578 )
2018-05-28 20:12:22 +10:00