Alexander Kachkaev
|
1ea2fd059a
|
Add eslint-plugin-simple-import-sort (#15817)
|
2023-12-18 03:34:12 +08:00 |
|
Sosuke Suzuki
|
fa48415617
|
Bump Prettier dependency to 3.0.0
|
2023-07-05 21:50:05 +09:00 |
|
fisker Cheung
|
68a13957f4
|
Use optional chaining (#13824)
|
2022-11-14 19:43:08 +08:00 |
|
Sosuke Suzuki
|
bb04cf072e
|
Merge branch 'main' into next
|
2022-10-25 01:42:41 +09:00 |
|
 MillyandSosuke Suzuki
|
ca246aface
|
Fix --cache set only if with --write or no-different (#13016)
* Fixed typo
* Return early if file does not exist
* Added tests for cache
* Added `mockWriteFileErrors` option to run helper
* Added tests for write error
* Remove files with differences from cache
* Add `getCliArguments` utility function
Refactor
* Fix lint
* Revert "Fix lint"
This reverts commit 18be64b7c42cd669496d59ff64bd534b8e03c3df.
* Revert "Add `getCliArguments` utility function"
This reverts commit d653fe10a92390102ae97cb43b2efcbb5c3c9140.
* Refactor with `cliArguments` variable
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
|
2022-10-24 23:55:36 +09:00 |
|
fisker Cheung
|
9cf73d3610
|
Use c8 ignore comments (#13683)
|
2022-10-22 23:33:08 +08:00 |
|
fisker Cheung
|
81709487cd
|
Use private fields (#13156)
|
2022-08-06 11:13:37 +08:00 |
|
fisker
|
21f2ea0f1e
|
Fix
|
2022-06-19 11:28:28 +08: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 |
|