Commit Graph
2134 Commits
Author SHA1 Message Date
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 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 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
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 59ec4f2ef4 Bump Prettier dependency to 2.7.0 2022-06-14 14:33:25 +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
Harry Hopkinson ebc436fcc1 Updated caniuse-lite to remove yarn build:website warning. (#12867) 2022-05-16 11:03:30 +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
dependabot[bot] 2ef33f143d Build(deps-dev): Bump @typescript-eslint/eslint-plugin (#12694) 2022-04-24 18:08:57 +00:00
dependabot[bot] 757aaf0ec8 Build(deps): Bump flow-parser from 0.176.2 to 0.176.3 (#12691) 2022-04-24 10:00:07 +00:00
dependabot[bot] c46b3ea033 Build(deps-dev): Bump esbuild from 0.14.36 to 0.14.38 (#12692)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 17:57:58 +08:00
dependabot[bot] 728b7a0b62 Build(deps-dev): Bump core-js from 3.22.0 to 3.22.2 (#12693)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 17:56:38 +08:00
dependabot[bot] 3b8655b11b Build(deps-dev): Bump eslint-plugin-jest from 26.1.4 to 26.1.5 (#12686)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 17:54:19 +08:00
dependabot[bot] f7c0a02ddc Build(deps-dev): Bump eslint from 8.13.0 to 8.14.0 (#12687)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 17:53:55 +08:00
dependabot[bot] 59200a78ab Build(deps-dev): Bump eslint-plugin-regexp from 1.6.0 to 1.7.0 (#12689)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-24 10:25:56 +08:00
dependabot[bot] 5b043a2432 Build(deps): Bump @typescript-eslint/typescript-estree from 5.18.0 to 5.20.0 (#12671)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-20 21:23:44 +08:00
dependabot[bot] e6334a3607 Build(deps): Bump semver from 7.3.6 to 7.3.7 (#12660)
Bumps [semver](https://github.com/npm/node-semver) from 7.3.6 to 7.3.7.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.6...v7.3.7)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-20 08:02:54 +08:00
dependabot[bot] c5ccff6aa3 Build(deps-dev): Bump @glimmer/reference from 0.84.1 to 0.84.2 (#12666) 2022-04-17 07:03:25 +00:00
dependabot[bot] 3f151deed4 Build(deps-dev): Bump esbuild from 0.14.34 to 0.14.36 (#12663) 2022-04-17 06:54:00 +00:00
dependabot[bot] b3fae6736b Build(deps-dev): Bump core-js from 3.21.1 to 3.22.0 (#12665) 2022-04-17 03:27:50 +00:00
dependabot[bot] fd4dc4592e Build(deps): Bump @glimmer/syntax from 0.84.1 to 0.84.2 (#12664) 2022-04-17 03:26:26 +00:00
dependabot[bot] 01ac16b180 Build(deps): Bump flow-parser from 0.175.1 to 0.176.2 (#12662) 2022-04-17 03:01:41 +00:00
dependabot[bot] e167d450e8 Build(deps-dev): Bump @typescript-eslint/eslint-plugin (#12661) 2022-04-17 03:01:14 +00:00
dependabot[bot] 8f7ca01e68 Build(deps-dev): Bump rollup-plugin-license from 2.6.1 to 2.7.0 (#12658) 2022-04-17 02:31:13 +00:00
dependabot[bot] 3771cead82 Build(deps-dev): Bump cspell from 5.19.5 to 5.19.7 (#12635)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.19.5 to 5.19.7.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.19.5...v5.19.7)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 00:51:46 +08:00
dependabot[bot] e2d6986946 Build(deps-dev): Bump eslint-plugin-jest from 26.1.3 to 26.1.4 (#12636)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 26.1.3 to 26.1.4.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.1.3...v26.1.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-10 19:24:45 +08:00
dependabot[bot] 45354643db Build(deps-dev): Bump eslint from 8.12.0 to 8.13.0 (#12638)
Bumps [eslint](https://github.com/eslint/eslint) from 8.12.0 to 8.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.12.0...v8.13.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-10 19:23:44 +08:00
dependabot[bot] 5c2f3f3bf3 Build(deps): Bump @babel/parser from 7.17.8 to 7.17.9 (#12614)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 10:50:52 +08:00
dependabot[bot] ce6fafc92a Build(deps-dev): Bump eslint-plugin-import from 2.25.4 to 2.26.0 (#12619)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.25.4 to 2.26.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.25.4...v2.26.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 00:06:12 +09:00
dependabot[bot] cb997ca7ab Build(deps): Bump @typescript-eslint/typescript-estree (#12621)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.18.0/packages/typescript-estree)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/typescript-estree"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-08 17:15:29 +08:00