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
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
fisker Cheung
2873d5963e
Group react, add labels
2022-05-08 18:26:52 +08:00
fisker Cheung
464cd9098f
Config renovate to rebase and dedupe
2022-05-08 16:35:49 +08:00
fisker Cheung
0ce5804fb9
Enable schedule
2022-05-08 16:17:30 +08:00
fisker Cheung
a0559c9380
Validate renovate config ( #12809 )
2022-05-08 15:48:42 +08:00
HosokawaR and fisker Cheung
7ab6198453
Make more callee patterns recognized as "test call callee". ( #12779 )
...
* make more pattern recognized as test call callee
* add tests
* add change log
* make collate logic easier to read.
* add typedef
* remove extra processing
* fix filename mistake is-noded-matches.js -> is-node-matches.js
* add correct words to cspell config
* add a comment about copying
* move patterns outside
* Minor tweak
* rename valiable name
* Adding changelog real-world use case
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-07 16:44:56 +09:00
Sosuke Suzuki
9fd05e8de5
Sort options ( #12801 )
2022-05-07 15:18:52 +09:00
fisker Cheung
6fe2178011
Enable renovate ( #12799 )
2022-05-06 21:49:39 +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
053022f5ed
Infer Stylus parser in Vue SFC ( #12707 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-01 23:01:24 +08:00
fisker Cheung
4c42129d96
Simplify pref test scripts ( #12699 )
2022-05-01 22:29:45 +08:00
Sosuke Suzuki
fe6820e815
Try to fix pnpm error on Dev Package Tests ( #12774 )
...
* Remove `-y` from `pnpm init`
* Change
2022-05-01 11:49:15 +09:00
Sosuke Suzuki
9348049311
Refactor: Use optional chaining in src/language-js/comments.js ( #12747 )
...
* Use optional chaining in `src/language-js/comments.js`
* Using sets
* Address review
2022-04-30 21:16:43 +09:00
Sosuke Suzuki
504d751036
Preserve blank line between export specifiers ( #12746 )
...
* Preserve blank line between export specifiers
* Add changelog
* rename
2022-04-29 17:42:42 +09:00
fisker Cheung
e23b89b8c7
Target dependabot to next branch ( #12712 )
2022-04-28 11:25:33 +08:00
fisker Cheung
fc74af1d94
Set loglevel to debug automatically when performance flags found ( #12698 )
2022-04-28 11:24:59 +08:00
fisker Cheung
a1dee86841
Refactor CSS utils ( #12680 )
2022-04-28 11:24:33 +08:00
HosokawaR and fisker Cheung
9fbdcda5b1
Print as instead of : for babel-ts parser ( #12706 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-27 17:56:38 +08:00
fisker Cheung
d1332b4c63
Set printBasicPrototype: false in snapshots ( #12702 )
2022-04-27 17:56:05 +08:00