Commit Graph
6910 Commits
Author SHA1 Message Date
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
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
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
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
fisker Cheung feb6b519ee Update release script (#12591) 2022-05-30 13:44:54 +08:00
fisker Cheung 67c2df0ffe Group @babel/* PRs except @babel/parser (#12933) 2022-05-28 10:51:59 +08:00
Sosuke Suzuki 9c11aa141a Add tests for TS 4.7 features (#12924)
* Add tests for instantiation expressions

* Add tests for infer extends

* Add tests for optional variance

* Update changelog
2022-05-28 03:37:30 +09:00
HosokawaR a089819223 fix formatting for typescript Enum with computed members (#12930)
* fix formatting for typescript Enum with computed members

* add change log

* remove extra examples in change log
2022-05-27 20:44:17 +09:00
Sosuke Suzuki 3147244f55 Update dependencies to support TypeScript 4.7 (#12921)
* Update `@typescript-eslint/typescript-estree` to 5.26.0

* Update `typescript` to `4.7.1-rc`

* Fix syntax kind

* Add `jsdoc_only_types.ts` to unstable tests

* Make printing jsdoc type stable

* Update typescript
2022-05-27 01:46:31 +09:00
Sosuke Suzuki 5b113e71b1 Add changelog for TypeScript 4.7 (#12901) 2022-05-22 03:33:18 +09:00
Sosuke Suzuki 2fc6e5dd4f Support TS 4.7 optional variance (#12900)
* Print `in` and `out`

* Add tests

* Add tests for jsx
2022-05-22 03:33:05 +09:00
Sosuke Suzuki 1eecc85985 Support TS 4.7 instantiation expression (#12898)
* Handle `TSInstantiationExpression`

* Print `typeParameters` for `TSTypeQuery`

* Add tests

* Add more tests
2022-05-22 03:30:47 +09:00
Sosuke Suzuki bc6539c15c Add tests for extends constraints for infer (#12897) 2022-05-22 03:28:47 +09:00
Sosuke Suzuki a1efda838a Update @babel/parser (#12896) 2022-05-21 23:00:06 +09:00
Sosuke Suzuki 36c20c51bc Support Speculation Rules API formatting in HTML (#12882)
* Add script formatting for `speculationrules`

* Fix lint problems
2022-05-17 10:38:46 +09:00
Jed Fox de16657ba0 Remove all references to Gitter (#12885) 2022-05-16 11:08:44 -04:00
fisker Cheung 9b11f99124 Refresh yarn.lock in /website (#12883) 2022-05-16 13:47:53 +08:00
Harry Hopkinson ebc436fcc1 Updated caniuse-lite to remove yarn build:website warning. (#12867) 2022-05-16 11:03:30 +08:00
HosokawaR 765d78305f Fix exports comment formats. (#12860)
* fix exports comment formats

* add tests

* add change log

* rename function name

* merge logic

* add tests to compare comment formats in `export` and `import`
2022-05-15 22:39:55 +09:00
fisker Cheung 77e5589591 Add .gitpod.yml file (#12851) 2022-05-10 13:48:41 +08:00
fisker Cheung 017317029a Update branchPrefix 2022-05-08 18:37:49 +08:00
fisker Cheung 6acb9dc88c Add new labels 2022-05-08 18:35:45 +08:00