fisker Cheung
8880afe9d1
Update dependencies in /website ( #13112 )
2022-07-15 22:55:29 +08:00
Diomidis Spinellis
e5beb5aea4
Use appropriate chalk instance for stderr output ( #13098 )
...
Chalk auto-detects whether the output channel supports colors,
but does that for stderr. Consequently, colors appear inconsistently
(and wrongly) depending on whether stdout or stderr have been redirected.
Issue: #13097
2022-07-13 23:14:40 +09:00
fisker Cheung
811b591ee8
Update dependency jest-docblock to v28.1.1 ( #13054 )
2022-07-11 10:03:49 +08:00
Sosuke Suzuki
ae3dd17114
Refactor: Extract printEndOfOpeningTag ( #13086 )
...
* Refactor
* Rename
* Fix typo
2022-07-09 20:05:27 +09:00
fisker Cheung
6bc6914d0b
Enable unicorn/prefer-logical-operator-over-ternary rule ( #13060 )
2022-07-09 16:03:46 +09:00
Or Rosenblatt
a00d31e1a4
Support .lintstagedrc ( #13081 )
...
* Test `.lintstagedrc` JSON and YML formatting (TDD)
* Support `.lintstagedrc` formatting
* Update spell checking for `.lintstagedrc`
* Update changelog
* Update changelog
2022-07-09 13:30:26 +09:00
fisker Cheung
a043ac0d73
Update dependency @typescript-eslint/typescript-estree to v5.30.0 ( #13053 )
2022-06-28 14:22:10 +08:00
Huáng Jùnliàng
9dd761a6e4
fix: JSON modules disable named exports ( #13035 )
2022-06-23 02:05:46 +08:00
Huáng Jùnliàng
b0201e01ef
fix: JSON modules disable named exports ( #13031 )
2022-06-21 10:56:00 +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
chimurai and fisker 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 Suzuki and fisker 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 Suzuki and Simon 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