Commit Graph
2316 Commits
Author SHA1 Message Date
fisker Cheung fe8fcb5f98 Bump Prettier dependency to 2.8.8 2023-04-23 15:32:30 +08:00
fisker Cheung 1b7fad5255 Release 2.8.8 2023-04-23 15:22:56 +08:00
fisker 543a9d71a7 Release 2.8.7 2023-03-24 16:11:52 +08:00
fisker 10fe1ed623 Release 2.8.6 2023-03-21 16:14:26 +08:00
fisker c1808e86a3 Bump Prettier dependency to 2.8.5 2023-03-20 14:08:34 +08:00
fisker 0a79535916 Release 2.8.5 2023-03-20 14:01:10 +08:00
fisker Cheung 019ebe5207 Support TypeScript 5 (backport #14391 and #13819) (#14512) 2023-03-20 13:57:48 +08:00
Joseph Frazier e7b383b570 Support max_line_length=off when parsing .editorconfig (#14516)
This fixes https://github.com/prettier/prettier/issues/14514 by
upgrading `editorconfig-to-prettier` with the fix from https://github.com/josephfrazier/editorconfig-to-prettier/pull/10
2023-03-18 12:55:30 -04:00
fisker Cheung f3b23ab63c Bump Prettier dependency to 2.8.4 2023-02-08 11:14:51 +08:00
fisker Cheung e681edb67c Release 2.8.4 2023-02-08 11:04:32 +08:00
fisker Cheung 310a5b1ba5 Handlebars: Improve HTML void element check (#14110) 2023-01-22 21:50:42 +08:00
fisker 9e9f8ec13f Bump Prettier dependency to 2.8.3 2023-01-14 11:42:14 +08:00
fisker c990e522ce Release 2.8.3 2023-01-14 11:33:26 +08:00
Sosuke Suzuki b9c3cd4c70 Bump Prettier dependency to 2.8.2 2023-01-07 20:22:01 +09:00
Sosuke Suzuki ac88438d65 Release 2.8.2 2023-01-07 20:15:48 +09:00
dependabot[bot] 0e25b13a28 Build(deps): Bump json5 from 2.2.1 to 2.2.2 (#14098)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 13:30:38 +08:00
Sosuke Suzukiandfisker 08a51db63f Update dependencies (#14052)
Co-authored-by: fisker <lionkay@gmail.com>
2022-12-23 21:45:45 +08:00
Sosuke Suzukiandfisker 7564339a15 Support type annotations on auto accessors via babel-ts (#14049)
* Update `@babel/parser`

* Move tests to `/format/typescript`

* Update tests

* Add changelog

* Dedupe

Co-authored-by: fisker <lionkay@gmail.com>
2022-12-23 16:41:36 +09:00
fisker CheungandGeorgii Dolzhykov a6b6184d75 Add missing parentheses to let (#14000)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-12-22 09:42:03 +08:00
Derek Lewisandfisker Cheung 44db370ca6 Don't lowercase Markdown link definition labels (#13155)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:51:19 +08:00
Sosuke Suzuki b87de09bcf Bump Prettier dependency to 2.8.1 2022-12-08 02:29:25 +09:00
Sosuke Suzuki cd1df1a184 Release 2.8.1 2022-12-08 02:22:06 +09:00
Sosuke Suzukiandfisker Cheung 1cf760a184 Support decorator auto accessors syntax (#13919)
* Install new ts-estree

* Print auto accessor properties

* Support edge cases

* Misc tests

* Add tests for auto accessor with type annotations

* Add changelog

* Update changelog_unreleased/typescript/13919.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update changelog_unreleased/typescript/13919.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Print semicolon for accessor and add tests

* Add TODO comment

* Add  to properties list

* Address review

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-05 20:50:15 +09:00
Sosuke Suzuki 4049e49fe2 Bump Prettier dependency to 2.8.0 2022-11-23 13:53:57 +09:00
Sosuke Suzuki dcc0623911 Release 2.8.0 2022-11-23 13:24:27 +09:00
Sosuke Suzuki fd376000e9 Update @typescript-eslint/typescript-estree to support satisfies (#13872)
* Update to `5.43.1-alpha.22`

* Update snapshots for satisfies

* Update changelog

* Remove `@ts-expect-error` comment

* Yarn dedupe

* Update to stable version

* Fix changelog

* Fix changelog
2022-11-22 15:19:28 +09:00
fisker Cheung 68ea881498 Update typescript to v4.9 (#13852) 2022-11-18 09:54:48 +08:00
Sosuke Suzuki ff0529ac2e Backport "Support TS4.9 satisfies operator (#13764)" (#13783) 2022-11-04 10:35:50 +08:00
fisker Cheung 2bc757554b Update acorn & espree (#13506) 2022-09-22 19:11:34 +08:00
fisker Cheung 8764a3d378 Improve typescript bundle speed (#13433) 2022-09-22 19:11:19 +08:00
dependabot[bot] ed4c3c19eb Build(deps-dev): Bump node-fetch from 3.2.3 to 3.2.10 (#13408)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 3.2.3 to 3.2.10.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v3.2.3...v3.2.10)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:development
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 17:16:12 +08:00
Georgii Dolzhykovandfisker 2c77149e6a Add benchmark script (#13224)
Co-authored-by: fisker <lionkay@gmail.com>
2022-08-06 11:25:34 +08:00
fisker Cheung 811b591ee8 Update dependency jest-docblock to v28.1.1 (#13054) 2022-07-11 10:03:49 +08:00
fisker Cheung 6bc6914d0b Enable unicorn/prefer-logical-operator-over-ternary rule (#13060) 2022-07-09 16:03:46 +09:00
fisker Cheung a043ac0d73 Update dependency @typescript-eslint/typescript-estree to v5.30.0 (#13053) 2022-06-28 14:22:10 +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
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 Suzuki 2316e2fecd Update linguist-language (#12994)
* Install new `linguist-language`

* Remove `.mts` and `.cts`

* Update tests
2022-06-12 01:55:11 +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
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
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 a1efda838a Update @babel/parser (#12896) 2022-05-21 23:00:06 +09:00
fisker Cheung 4c42129d96 Simplify pref test scripts (#12699) 2022-05-01 22:29:45 +08:00
fisker Cheung fc74af1d94 Set loglevel to debug automatically when performance flags found (#12698) 2022-04-28 11:24:59 +08:00
dependabot[bot]andfisker Cheung 586a4b2a87 Build(deps): Bump css-units-list from 0.0.5 to 1.1.0 (#12684)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-25 14:02:59 +08:00