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 |
|
fisker Cheung
|
e14411c278
|
Support async parser (#12748)
|
2022-05-04 11:15:48 +08:00 |
|
Jed Fox
|
b188c905cf
|
Provide an example .editorconfig (#12756)
|
2022-05-02 12:37:05 -04:00 |
|
Adrian Leonhard
|
97cbdc3d1d
|
Add prettier-plugin-glsl to community plugins (#12777)
* Add prettier-plugin-glsl to community plugins
* add glsl to cspell.json
|
2022-05-02 21:48:58 +09:00 |
|
fisker Cheung
|
c6d6b25833
|
prettier.{format,formatWithCursor,check}() are now async (#12574)
|
2022-04-29 14:22:24 +08:00 |
|
fisker Cheung
|
a85f38f096
|
Merge branch 'main' into next
# Conflicts:
# .github/workflows/dev-test.yml
# jest.config.mjs
# package.json
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/format.js
# src/cli/options/create-minimist-options.js
# src/cli/options/parse-cli-arguments.js
# src/cli/usage.js
# src/cli/utils.js
# src/common/create-ignorer.js
# src/common/load-plugins.js
# src/config/resolve-config.js
# src/index.js
# src/language-css/utils/css-units.evaluate.js
# src/language-html/ast.js
# src/language-html/print-preprocess.js
# src/language-html/utils/index.js
# src/main/multiparser.js
# tests/format/markdown/auto-link/jsfmt.spec.js
# tests/integration/__tests__/__snapshots__/config-resolution.js.snap
# tests/integration/__tests__/__snapshots__/with-config-precedence.js.snap
# tests/integration/__tests__/file-info.js
# yarn.lock
|
2022-04-25 14:28:27 +08:00 |
|
  
|
c50f2bbe30
|
Please describe what prettier ignores by default (#12626)
Co-authored-by: Szymon Dzialowski <sdzialowski@godaddy.com>
Co-authored-by: Szymon Dzialowski <sdzialowski@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-04-12 17:47:07 +08:00 |
|
 Harry Hopkinsonandfisker Cheung
|
f98c197b66
|
Print the number of files that need formatting. (#12561)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-04-07 09:47:13 +08:00 |
|
fisker Cheung
|
6016404f59
|
Merge branch 'main' into next
# Conflicts:
# .eslintrc.cjs
# .github/workflows/prod-test.yml
# .github/workflows/validate-vendors.yml
# scripts/build/bundler.mjs
# scripts/vendors/bundle-vendors.mjs
# scripts/vendors/utils.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/logger.js
# src/cli/options/get-options-for-file.js
# src/cli/options/parse-cli-arguments.js
# src/common/util.js
# src/language-html/utils/html-tag-names.js
# tests/integration/__tests__/bundle.js
# tests/integration/__tests__/loglevel.js
# tests/integration/run-prettier.js
# vendors/string-width.js
|
2022-04-06 15:41:50 +08:00 |
|
Sosuke Suzuki
|
d6f82a024a
|
Release 2.6.2
|
2022-04-03 01:31:20 +09:00 |
|
fisker Cheung
|
65ce63b4dc
|
Merge branch 'main' into next
# Conflicts:
# package.json
# scripts/vendors/bundle-vendors.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/language-handlebars/utils.js
# src/language-html/utils/html-elements-attributes.js
# vendors/tempy.js
|
2022-04-01 10:37:35 +08:00 |
|
a-kawasumi
|
63f1ee2c17
|
fix: delete tslint from docs (#12538)
|
2022-03-27 00:58:49 +09:00 |
|
fisker Cheung
|
92d1f89c98
|
Merge branch 'main' into next
# Conflicts:
# scripts/vendors/bundle-vendors.mjs
|
2022-03-25 16:45:08 +08:00 |
|
Sosuke Suzuki
|
ad505bf771
|
Release 2.6.1
|
2022-03-25 13:58:22 +09:00 |
|
fisker Cheung
|
c95c899b6f
|
Merge branch 'main' into next
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/format.js
# src/cli/logger.js
# src/cli/options/get-options-for-file.js
# src/cli/options/parse-cli-arguments.js
# src/main/core.js
# tests/config/install-prettier.js
# vendors/execa.js
# vendors/mem.js
# vendors/string-width.js
# vendors/tempy.js
# yarn.lock
|
2022-03-17 09:44:08 +08:00 |
|
Sosuke Suzuki
|
cba25e6b09
|
Release 2.6.0
|
2022-03-16 13:09:58 +09:00 |
|
fisker Cheung
|
bf98018486
|
Merge branch 'main' into next
# Conflicts:
# .eslintrc.cjs
# .github/workflows/validate-vendors.yml
# bin/prettier.js
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# scripts/build/esbuild-plugins/replace-module.mjs
# scripts/build/esbuild-plugins/umd.mjs
# scripts/bundle-eslint-config.cjs
# scripts/vendors/README.md
# scripts/vendors/bundle-vendors.mjs
# scripts/vendors/utils.mjs
# scripts/vendors/vendor-meta.json
# src/cli/index.js
# tests/integration/__tests__/early-exit.js
# yarn.lock
|
2022-03-14 10:31:40 +08:00 |
|
Ananta Krsna dasa
|
db1f4e473f
|
Mention Handlebars in the docs (#12391)
According to https://prettier.io/blog/2021/05/09/2.3.0.html#ember--handlebars, Handlebars support has been officially released, whereas it is not vividly mentioned on the main docs page.
|
2022-03-13 17:10:58 +09:00 |
|
fisker Cheung
|
ec2b75dce9
|
Merge branch 'main' into next
# Conflicts:
# .github/workflows/validate-vendor-versions.yml
# package.json
# scripts/build/bundler.mjs
|
2022-02-28 21:06:23 +08:00 |
|
 Alexander Sennikovandfisker Cheung
|
2cde2dbf9d
|
Add prettier-plugin-jsonata to the Plugins page in docs (#12347)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-02-22 09:47:46 +08:00 |
|