Commit Graph
502 Commits
Author SHA1 Message Date
fisker Cheung daeb90f1ca Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/language-css/printer-postcss.js
#	src/language-handlebars/printer-glimmer.js
#	src/language-markdown/clean.js
#	src/language-markdown/printer-markdown.js
#	yarn.lock
2022-12-15 19:16:59 +08:00
David De Sloovereandfisker Cheung df1f6ad1ac Update Husky.Net info (#13883)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:50:24 +08:00
Sosuke Suzuki a8869bef55 Merge branch 'main' into next 2022-12-08 22:00:17 +09:00
Sosuke Suzuki cd1df1a184 Release 2.8.1 2022-12-08 02:22:06 +09: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 dcc0623911 Release 2.8.0 2022-11-23 13:24:27 +09:00
fisker Cheung 9411aa2e47 Merge branch 'main' into next
# Conflicts:
#	changelog_unreleased/typescript/13764.md
#	package.json
#	scripts/release/yarn.lock
#	src/language-js/parse/postprocess/typescript.js
#	yarn.lock
2022-11-18 14:27:23 +08:00
fisker Cheung ae4d85ab3c Update description of vueIndentScriptAndStyle option (#13781) 2022-11-04 11:14:12 +08:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
fisker Cheung 2d23d33a40 Remove since from options and languages (#13699) 2022-10-23 11:18:36 +08: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
fisker Cheung 822f354ceb Update docs (#13309) 2022-09-26 19:28:43 +08:00
fisker Cheung 7ccc4f55f2 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/modify-typescript-module.mjs
#	yarn.lock
2022-09-22 19:17:55 +08:00
fisker Cheung b0d9387b95 Fix unpkg link (#13484) 2022-09-17 20:32:03 +08:00
fisker Cheung 151ab582b5 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/release/yarn.lock
#	yarn.lock
2022-09-06 19:22:51 +08:00
Ryan Vandersmith 98b93cfb03 Add prettier-plugin-motoko to community plugin list (#13406) 2022-09-02 09:03:52 +08:00
Simon Legnerandfisker Cheung 9850bc6af3 docs(configuration): linkfix (#12005)
* docs(configuration): linkfix

* Link to the `overrides` section in new ESLint website

* Update stable version docs too

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-29 16:24:02 +03:00
Dinika f48f514deb Update integrating-with-linters.md (#12363) 2022-08-29 16:21:18 +03:00
Adrian Leonhard e4af667e03 docs: plugins.md: add getCommentChildNodes (#12502) 2022-08-29 15:06:41 +03:00
fisker Cheung 0b072060b5 Merge branch 'main' into next
# Conflicts:
#	src/language-js/print/flow.js
#	src/language-js/print/literal.js
2022-08-26 10:29:09 +08:00
fisker Cheung db21497592 Docs: Fix handleComments function signature (#13308) 2022-08-25 19:17:38 +08:00
Joe a2a3849c43 Added prettier-plugin-nginx to Community Plugins list (#13320)
Added [`prettier-plugin-nginx`](https://github.com/joedeandev/prettier-plugin-nginx) to Community Plugins list.
2022-08-21 15:48:37 +08:00
fisker Cheung 5fa0802315 Add getVisitorKeys (#13255) 2022-08-17 09:47:08 +08:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
Nikolas 5910eb9204 Add prettier-plugin-prisma to list of community plugins (#13272) 2022-08-15 18:18:37 +08:00
Caleb Jasik 0f19075f5f Add prettier-plugin-astro to list of plugins (#13269)
* Add prettier-plugin-astro to list of plugins

* Order the plugin correctly alphabetically

* Update creator text/link

* Update cspell dictionary
2022-08-12 17:18:55 +09: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
Georgii Dolzhykov 67efa96da6 Custom parser API: deprecation notice (#13252) 2022-08-07 14:12:17 +03: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 Cheung 5aadab6f28 Support ESM plugins (#13201) 2022-08-06 10:42:27 +08:00
fisker Cheung cdb1494170 Revert "Switch print/embed to async (#13104)" (#13210) 2022-08-02 18:11:34 +08:00
Sosuke Suzuki b12396d69a Change --loglevel to --log-level (#13204)
* Change `--loglevel` to `--log-level`

* Update tests

* Update docs

* Add changelog
2022-08-02 09:39:41 +09:00
fisker Cheung 298347c9fb Merge branch 'main' into next
# Conflicts:
#	netlify.toml
#	src/cli/find-cache-file.js
#	src/cli/utils.js
#	src/main/parser.js
#	website/playground/PrettierFormat.js
#	website/static/worker.js
2022-08-01 11:27:34 +08:00
fisker Cheung 83400d19b4 Change default value of trailingComma to "all" (#11479) 2022-08-01 11:05:17 +08:00
fisker Cheung 44d246a2a2 Support config file in ESM (#13130) 2022-08-01 10:51:31 +08:00
Sam Apostel 765cae2552 Docs: Use npm pkg set instead of deprecated npm set-script (#13186) 2022-08-01 10:26:23 +08:00
Sosuke SuzukiandHolger Jeromin 955553bb39 Add --cache-location option (#13019)
* Implement searching cache file from `--cache-location` option

* Add tests

* Add docs

* Fix

* Fix doc

* Add changelog

* Update snapshots

* Update docs

* Update docs/cli.md

Co-authored-by: Holger Jeromin <mailgithub@katur.de>

* Fix changelog

* Remove directory support

* Update docs

* Update tests

* Update docs

* Add validation for dir

* Fix comment

* Update option description

* Validate JSON

* Use `path.resolve`

Co-authored-by: Holger Jeromin <mailgithub@katur.de>
2022-07-31 22:58:05 +09:00
JounQin 6e1effadda docs: add sql plugin (#13184) 2022-07-29 01:46:35 +09:00
Georgii Dolzhykov b65cb6c1f6 Playground: doc explorer (#10183) 2022-07-23 22:46:16 +03:00
fisker Cheung 8dae4abf41 Switch print/embed to async (#13104) 2022-07-17 16:10:06 +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 eeed611c72 Release 2.7.1 2022-06-16 13:36:19 +08:00
fisker Cheung 59ec4f2ef4 Bump Prettier dependency to 2.7.0 2022-06-14 14:33:25 +08:00
fisker Cheung 13dcc16330 Release 2.7.0 2022-06-14 13:06:41 +08:00
Sosuke SuzukiandSimon Lydell fdccc0f48e Add --cache CLI option (#12800)
* Install `file-entry-cache` and types

* Implement `FormatResultsCache`

* Add `--cache` and `--cache-location` option

* Implement `--cache` and `--cache-location`

* Add tests for `--cache`

* Add tests for `--cache-location`

* Avoid spellcheck error

* Update snapshots for new options

* Add `groupBy` for website

* Use `fs.promises` instead of `fs/promises`

* Use `rimraf` instead of `fs.rm`

* Fix properties order of `options`

* Install `find-cache-dir` and types

* Change default cache file location to `node_modules/.cache/prettier`

* Fix tests following to change default cache file location

* Update snapshots for changing default cache file location

* Set `os.tmpdir()` as a fallback for default cache dir

* Add docs for `--cache` and `--cache-location`

* Use `sdbm` instead of `node:crypto`

* Add changelog

* Fix `getHashOfOptions`

* Remove `cache-location`

* `prettiercache` -> `prettier-cache`

* Remove cache file when run Prettier without `--cache` option

* Implement `--cache-strategy`

* Add tests for invalid cache strategy

* Fix lint problems

* Tweaks tests

* Add tests for timestamp

* Add tests for `--cache-strategy`

* Add docs for cache-strategy

* Address review

* Fix `findCacheFile`

* Use Set.prototype.has

* Throw error with --stdin-filepath

* Update snapshots

* Fix error for cache and stdin

* Use string constructor instead of toString

* Update changelog

* Use flag validation

* Fix `cache-strategy` definition

* Update docs

* Mark highlihgt

* Throw error for `--cache-strategy` without `--cache`

* Update docs

* Fix typo

* Updates snapshots

* Update docs/cli.md

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>

* Fix error message

* Remove `:::` syntax

* Defaults `content`

* Update docs

* Fix by Prettier

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2022-06-11 23:32:32 +09:00
fisker Cheung 9569ab12aa Merge branch 'main' into next
# Conflicts:
#	.github/renovate.json5
#	.github/workflows/lint.yml
#	package.json
#	src/cli/format.js
#	src/language-js/print/type-annotation.js
#	src/language-js/print/typescript.js
#	src/language-js/utils/index.js
#	tests/format/typescript/enum/jsfmt.spec.js
#	tests/format/vue/with-plugins/jsfmt.spec.js
#	website/yarn.lock
#	yarn.lock
2022-05-28 11:19:03 +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 c1f6d021e5 Use named export instead of default export (#12740) 2022-05-05 15:03:08 +08:00