Commit Graph
97 Commits
Author SHA1 Message Date
fisker 05cf896cfc Clean changelog_unreleased 2026-06-27 18:33:45 +08:00
fisker Cheung 8bff16e3d9 Update @prettier/prettier-cli to v0.12 (#19415) 2026-06-22 20:07:03 +08:00
renovate[bot]andfisker a9765a94b9 Update dependency @prettier/cli to v0.11.1 (#19381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-16 08:16:44 +08:00
Konv Suuandfisker Cheung c9a0d5a8ce Fix formatting files with a quote at the start of a path segment (#19315)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-06-10 09:23:06 +08:00
Seiyaandfisker 6718f74bcd Consider git worktree as project root (#18891)
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-04 23:25:21 +08:00
Paulo Duarte 9c044f33a8 fix: match useCheckSum casing expected by file-entry-cache v11 (#18914) 2026-04-12 07:41:41 +08:00
fisker Cheung a9c0ce927b Replace editorconfig with editorconfig-without-wasm (#18452) 2025-12-09 23:21:27 +08:00
fisker c4905e5be9 Clean changelog_unreleased 2025-11-27 16:31:35 +08:00
Chiawen Chenandfisker Cheung 0273e33fc6 Avoid creating node_modules/.cache/ when --cache is not enabled (#18124)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-11-17 03:05:45 +08:00
fisker f67b32ba66 Clean changelog_unreleased 2025-06-23 10:10:54 +08:00
SUZUKI Sosuke 0ef2086cc9 Fix English grammer in changelog_unreleased (#17635) 2025-06-22 14:58:35 +09:00
fisker Cheungandautofix-ci[bot] f41214b2f1 Add changelog for hermes and oxc plugin (#17629)
* Add changelog for `hermes` and `oxc` plugin

* Apply automated changes

* Move to `flow/`

* Spellcheck

* Reword

* Reword

* Apply automated changes

* Fix

* Reword

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-22 00:49:06 +09:00
fisker Cheung d8ab2b1f66 Fix exit code and result message when parser can not infer (#17505) 2025-06-02 22:53:37 +08:00
Leonardo Montiniandfisker abb43bf287 Forbid use --config and --no-config together (#12221)
Co-authored-by: fisker <lionkay@gmail.com>
2025-05-27 09:16:26 +08:00
renovate[bot]andfisker bba5dc430c chore(deps): update dependency file-entry-cache to v10.1.0 (#17438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-05-27 09:06:53 +08:00
fisker Cheung d4fd92e266 Bundle "Experimental CLI" (#17396) 2025-05-06 10:34:05 +08:00
fisker 0549e3c562 Add changelog 2025-04-14 23:40:54 +08:00
SUZUKI Sosuke 5c6450db9c Clean changelog for 3.1.1 (#15889)
Clean changelogs
2024-01-07 23:52:00 +09:00
Sander Maijersandfisker 8e816ade2e Allow skipping symlink patterns, to avoid raising a fault (#15533)
Co-authored-by: fisker <lionkay@gmail.com>
2023-12-08 01:54:18 +09:00
Sosuke Suzuki a3e1be82b6 Clean changelog 2023-11-13 12:04:23 +09:00
fisker Cheung 1a00467677 Fix error when formatting file names contains square brackets or dots (#15597) 2023-11-07 10:25:24 +08:00
ADTC 7e67e43061 Show (unchanged) keyword for accessibility in CLI --write (#15467) 2023-10-09 08:40:28 +09:00
SUZUKI Sosuke 9f06cdd5b0 Process files only supported by plugins (#15433) 2023-09-25 14:45:01 +09:00
Sosuke Suzuki 266344398c Clean changelog 2023-07-06 01:47:41 +09:00
SUZUKI Sosuke c9d62c0690 V3 blog post (#13436) 2023-07-05 21:59:08 +09:00
fisker Cheung c0f6f2da8b Clear filename before print ignored file code to screen (#14794) 2023-05-16 20:40:18 +08:00
fisker Cheung b86e42cc84 Ignore .gitignored files (#14731) 2023-05-04 17:20:05 +08:00
Anders Kaseorgandfisker dcc081db0d Don’t expand globs via symbolic links (#14627)
Co-authored-by: fisker <lionkay@gmail.com>
2023-05-04 17:01:20 +08:00
SUZUKI Sosuke f624507259 Print line breaking after file path with errors (#14788) 2023-05-04 17:51:14 +09:00
fisker Cheung 578f093d30 Accept multiple --ignore-paths (#14332) 2023-04-10 10:51:46 +08:00
fisker Cheung f83b69111d CLI: Display posix style paths on Windows (#14333) 2023-02-19 20:27:37 +08:00
fisker Cheung 52fbecc89b Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	yarn.lock
2022-11-23 19:44:31 +08:00
Sosuke Suzuki 9c45de6842 Clean changelog 2022-11-23 14:11:13 +09:00
Sosuke SuzukiandGeorgii Dolzhykov ebd4542d59 2.8 blog post (#13813)
* Draft

* Update

* Generate

* Add `truncate`

* Address review

* Regen

* Update

* Reword changelog for #13016

* Edit intro

* Edit changelog for #13019

* Regenerate blog post

* Address review

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-11-23 14:01:45 +09:00
fisker Cheung 9411aa2e47 Merge branch 'main' into next
# Conflicts:
#	changelog_unreleased/typescript/13764.md
#	package.json
#	scripts/release/yarn.lock
#	src/language-js/parse/postprocess/typescript.js
#	yarn.lock
2022-11-18 14:27:23 +08:00
Sosuke Suzuki a980caa7db Add missing changelog for #13016 (#13812)
* Add missing changelog

* Fix
2022-11-06 18:48:44 +09:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
Sosuke Suzuki b12396d69a Change --loglevel to --log-level (#13204)
* Change `--loglevel` to `--log-level`

* Update tests

* Update docs

* Add changelog
2022-08-02 09:39:41 +09: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
Or Rosenblatt a00d31e1a4 Support .lintstagedrc (#13081)
* Test `.lintstagedrc` JSON and YML formatting (TDD)

* Support `.lintstagedrc` formatting

* Update spell checking for `.lintstagedrc`

* Update changelog

* Update changelog
2022-07-09 13:30:26 +09:00
fisker Cheung c7c99305e9 Clean changelog 2022-06-14 14:40:54 +08:00
Sosuke Suzukiandfisker Cheung 934068ac6a Add 2.7 blog post (#12966)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-14 14:25:40 +08:00
sosukesuzuki e5868ad368 Update changelog 2022-06-11 23:36:35 +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
fisker Cheung 4c42129d96 Simplify pref test scripts (#12699) 2022-05-01 22:29:45 +08:00
fisker Cheung 85e6e4f73f CLI: Skip print code or write file when performance flags found (#12682) 2022-04-25 08:44:22 +08:00
Harry Hopkinsonandfisker Cheung f98c197b66 Print the number of files that need formatting. (#12561)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-07 09:47:13 +08:00
fisker Cheung 3fd64b4f30 Format .importmap file with json-stringify parser (#12603) 2022-04-07 09:37:30 +08:00
Sosuke Suzuki f7f13dcf82 Clean changelog_unreleased 2022-03-25 15:24:55 +09:00
dependabot[bot]andfisker Cheung 67edeeaf72 Build(deps): Bump minimist from 1.2.5 to 1.2.6 (#12513)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-24 12:03:26 +08:00