Commit Graph
7399 Commits
Author SHA1 Message Date
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
Sosuke Suzuki fde0b49d78 Run prettier 2022-06-18 21:49:24 +09:00
fisker Cheung 877ae8ec16 Add repo to another git push command 2022-06-16 13:56:57 +08:00
fisker Cheung 8772b064c9 Clean changelog 2022-06-16 13:54:43 +08:00
fisker Cheung 4e0965b852 Git blame ignore 2.7.1 2022-06-16 13:51:12 +08:00
fisker Cheung 1f9baef429 Bump Prettier dependency to 2.7.1 2022-06-16 13:51:10 +08:00
fisker Cheung eeed611c72 Release 2.7.1 2022-06-16 13:36:19 +08:00
chimuraiandfisker Cheung 794d9d1558 bugfix(graphql): Keep useful empty lines in description (#13013)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-16 13:33:09 +08:00
renovate[bot]andRenovate Bot 5f8885d5f2 Update dependency rollup-plugin-license to v2.8.1 (#13007)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-16 13:25:15 +08:00
renovate[bot]andRenovate Bot d6cb8bce78 Update dependency codemirror-graphql to v1.3.2 (#12998)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-16 13:24:53 +08:00
fisker Cheung dd2af6f053 Fix --skip-dependencies-install 2022-06-16 13:21:11 +08:00
fisker Cheung b21772baaa Allow skip depencies install & set repo 2022-06-16 13:17:54 +08:00
fisker Cheung 5530ad24b9 Merge branch 'main' of github.com:prettier/prettier 2022-06-14 14:41:58 +08:00
fisker Cheung c7c99305e9 Clean changelog 2022-06-14 14:40:54 +08:00
fisker Cheung 448786fe35 Revert changes in release script 2022-06-14 14:40:25 +08:00
Sosuke Suzuki 6b388faa50 Add truncate 2022-06-14 15:36:02 +09:00
fisker Cheung 109333ad99 Git blame ignore 2.7.0 2022-06-14 14:33:27 +08:00
fisker Cheung 59ec4f2ef4 Bump Prettier dependency to 2.7.0 2022-06-14 14:33:25 +08:00
fisker Cheung 00a6a9d021 Update dependents count 2022-06-14 14:27:11 +08:00
Sosuke Suzukiandfisker Cheung 934068ac6a Add 2.7 blog post (#12966)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-14 14:25:40 +08:00
fisker Cheung f64c96c6f3 Skip steps 2022-06-14 14:23:50 +08:00
fisker Cheung 0fe554c2b0 Add one more step 2022-06-14 14:23:34 +08:00
fisker Cheung 3771e9c53d Skip steps 2022-06-14 14:21:26 +08:00
fisker Cheung 13dcc16330 Release 2.7.0 2022-06-14 13:06:41 +08:00
fisker Cheung 00ee6fb6f8 Skip depenedencies install 2022-06-14 13:04:05 +08:00
fisker Cheung d2bcaea121 Throw errors for invalid TSEmptyBodyFunctionExpression node (#12982) 2022-06-14 12:33:44 +08:00
HosokawaR 1bec824556 Revert "print as instead of colon for babel-ts parser" (#12995)
This reverts commit f49114141a21f4f3cb1bb569e241ce1dbcdece44.

; Conflicts:
;	src/language-js/print/misc.js
2022-06-12 12:19:09 +09:00
Sosuke Suzuki 2316e2fecd Update linguist-language (#12994)
* Install new `linguist-language`

* Remove `.mts` and `.cts`

* Update tests
2022-06-12 01:55:11 +09:00
sosukesuzuki e5868ad368 Update changelog 2022-06-11 23:36:35 +09: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
Sosuke Suzuki 97bab8f984 Update angular-estree-parser (#12993)
* Update `angular-estree-parser`

* Add tests

* Add changelog
2022-06-11 20:08:46 +09:00
Sosuke Suzuki 7f9a08762d Update dependency flow-parser to v0.180.0 (#12990)
* Update `flow-parser`

* Update snapshots
2022-06-11 00:06:22 +09:00
dependabot[bot] aa1d536e29 Build(deps): Bump tmpl from 1.0.4 to 1.0.5 in /scripts/release (#12984)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 00:24:11 +08:00
renovate[bot]andRenovate Bot b6266a8be3 Update dependency node-fetch to v3.2.5 (#12970)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-07 09:08:35 +08:00
renovate[bot]andRenovate Bot f8ce3b3d96 Update dependency codemirror to v5.65.5 (#12969)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-07 09:08:06 +08:00
fisker Cheung 1ae86fa5f3 CLI: Sort language alphabetically by name when print support info (#12947) 2022-06-06 22:46:29 +08:00
fisker Cheung d4dfac4bcf Fix 2022-06-06 22:04:49 +08:00
fisker Cheung c22ea97e00 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	src/language-html/print/tag.js
#	src/main/load-parser.js
#	src/main/parser.js
#	yarn.lock
2022-06-06 22:00:41 +08:00
renovate[bot]andRenovate Bot a55e01ab6f Update dependency eslint-plugin-jest to v26.5.3 (#12976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 21:49:32 +08:00
renovate[bot]andRenovate Bot c6c18be3c9 Update dependency webpack to v5.73.0 (#12978)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 21:46:58 +08:00
renovate[bot]andRenovate Bot 9ecf029006 Update dependency @types/jest to v28 (#12980)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 21:46:34 +08:00
renovate[bot]andRenovate Bot 9d0d4fb35e Update dependency eslint to v8.17.0 (#12975)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 20:22:41 +08:00
renovate[bot]andRenovate Bot 971b4036d0 Update dependency webpack to v5.73.0 (#12977)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 20:21:53 +08:00
Sosuke Suzuki be9d63e543 Avoid printing attribute per line in Vue SFC blocks (#12895)
* Avoid print single attribute perline for Vue SFC blocks

* Add tests

* Add changelog

* Fix typo

* Add more tests
2022-06-04 23:25:27 +09:00
fisker Cheung 83ec3c36e3 Build: stricter warning check (#12956) 2022-06-01 19:23:13 +08:00
renovate[bot]andRenovate Bot df3ae00ba4 Update dependency eslint-plugin-jest to v26.4.6 (#12952)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-01 08:42:48 +08:00
renovate[bot]andRenovate Bot b30c55367b Update dependency @babel/types to v7.18.4 (#12955)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-01 08:42:31 +08:00
Sosuke Suzuki a808df643d Update @typescript-eslint/typescript-estree to 5.27.0 and move tests (#12959)
* Install latest typescript-estree

* Move tests for type parameter of typeof

* Update changelog
2022-06-01 06:47:51 +09:00
renovate[bot]andRenovate Bot 3a9b4249d7 Update dependency @babel/parser to v7.18.4 (#12954)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 13:48:42 +08:00
fisker Cheung feb6b519ee Update release script (#12591) 2022-05-30 13:44:54 +08:00