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 |
|
Sosuke Suzuki
|
d09bc86c9f
|
Enable prettier-internal-rules/prefer-fs-promises-submodule for all files (#13722)
* Enable `prefer-fs-promises-submodule` for all files
* Fix problems
|
2022-10-23 22:23:44 +09:00 |
|
Sosuke Suzuki
|
f8773fcd6a
|
Remove rimraf package (#13721)
* Remove `rimraf` from `draft-blog-post`
* Remove `rimraf` from `sync-flow-tests`
* Remove `rimraf` from cache tests
* Uninstall `rimraf`
|
2022-10-23 22:23:30 +09:00 |
|
fisker Cheung
|
55779bb96c
|
Refactor CLI tests (#13208)
|
2022-08-03 14:19:00 +08:00 |
|
fisker Cheung
|
298347c9fb
|
Merge branch 'main' into next
# Conflicts:
# netlify.toml
# src/cli/find-cache-file.js
# src/cli/utils.js
# src/main/parser.js
# website/playground/PrettierFormat.js
# website/static/worker.js
|
2022-08-01 11:27:34 +08:00 |
|
 Sosuke SuzukiandHolger Jeromin
|
955553bb39
|
Add --cache-location option (#13019)
* Implement searching cache file from `--cache-location` option
* Add tests
* Add docs
* Fix
* Fix doc
* Add changelog
* Update snapshots
* Update docs
* Update docs/cli.md
Co-authored-by: Holger Jeromin <mailgithub@katur.de>
* Fix changelog
* Remove directory support
* Update docs
* Update tests
* Update docs
* Add validation for dir
* Fix comment
* Update option description
* Validate JSON
* Use `path.resolve`
Co-authored-by: Holger Jeromin <mailgithub@katur.de>
|
2022-07-31 22:58:05 +09: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 |
|