Commit Graph
2280 Commits
Author SHA1 Message Date
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
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
Sosuke Suzukiandfisker Cheung fa3b95c2e1 Remove lodash (#12628)
* Replace `groupBy`

* Replace `partition`

* Replace `pick`

* Move `partition`

* Replace `uniqBy`

* Replace `fromPairs`

* Remove usage from website

* Reuse `partition`

* Remove from package.json

* Fix

* Use `ignore.default`

* Add `resolveConfig` to `FileInfoOptions`

* Explicit tuple types

* Make `cache` optional

* Fix cosmiconfig type

* Use `@ts-expect-error` for private property access

* Add type annotation for validate

* Fix type errors for `OptionInfo`

* Add `@ts-expect-error`

* Fix type of `normalizeOptions`

* Fix `OptionInfo` type

* Add `@ts-expect-error` for `option-normalizer`

* Avoid type error

* Fix typo

* Add types for lodash fns

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-10 15:26:07 +09: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
dependabot[bot] f1ae6db2c4 Build(deps-dev): Bump esbuild from 0.14.30 to 0.14.34 (#12618) 2022-04-08 06:40:52 +00:00
dependabot[bot] f422433493 Build(deps): Bump semver from 7.3.5 to 7.3.6 (#12620) 2022-04-08 06:27:00 +00:00
dependabot[bot] 9558c93201 Build(deps): Bump flow-parser from 0.175.0 to 0.175.1 (#12616) 2022-04-08 02:57:34 +00:00
dependabot[bot] e7233d4e06 Build(deps-dev): Bump @babel/core from 7.17.8 to 7.17.9 (#12617) 2022-04-08 02:56:25 +00:00
dependabot[bot] b419ea2cb8 Build(deps-dev): Bump @typescript-eslint/eslint-plugin (#12615) 2022-04-08 02:51:18 +00:00
dependabot[bot] 52e860392e Build(deps-dev): Bump pretty-bytes from 5.6.0 to 6.0.0 (#12315) 2022-04-03 20:01:46 +00:00
fisker Cheung 687ca4b95d Drop Node.js 12 support for development "build" (#12557) 2022-04-03 01:42:20 +08:00
Sosuke Suzuki e2d9e9139d Bump Prettier dependency to 2.6.2 2022-04-03 01:33:49 +09:00
Sosuke Suzuki d6f82a024a Release 2.6.2 2022-04-03 01:31:20 +09:00
dependabot[bot] 378370a01e Build(deps): Bump leven from 3.1.0 to 4.0.0 (#11349) 2022-04-03 00:32:34 +09:00
dependabot[bot] 3c96a08176 Build(deps): Bump strip-ansi from 6.0.0 to 7.0.0 (#10731) 2022-04-03 00:32:34 +09:00
dependabot[bot]andfisker Cheung 1bfb08f289 Build(deps): Bump meriyah from 4.2.0 to 4.2.1 (#12567)
* Build(deps): Bump meriyah from 4.2.0 to 4.2.1

Bumps [meriyah](https://github.com/meriyah/meriyah) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/meriyah/meriyah/releases)
- [Changelog](https://github.com/meriyah/meriyah/blob/master/CHANGELOG.md)
- [Commits](https://github.com/meriyah/meriyah/compare/v4.2.0...v4.2.1)

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

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

* Add test for https://github.com/meriyah/meriyah/commit/6de707a0efb3053767deaa36b1ed6979b0d3f873

* Test https://github.com/meriyah/meriyah/commit/37c63613771e5bc6e23b7da2d92e992c60dafc5a

* Test https://github.com/meriyah/meriyah/commit/d757c6b20ae4f6f4e55a77179726db36cf2bd50b

* Add changelog

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-03 00:32:34 +09:00
dependabot[bot]andfisker Cheung 5e3de4828d Build(deps): Bump escape-string-regexp from 4.0.0 to 5.0.0 (#10725)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-03 00:32:34 +09:00