Commit Graph
145 Commits
Author SHA1 Message Date
fisker Cheung 1cd4d9c160 Fix JSONC filenames list (#15947) 2024-01-17 18:02:25 +08:00
fisker 6c6a332171 Spellcheck 2024-01-17 11:46:53 +08:00
renovate[bot]andfisker b4ed91bffb chore(deps): update typescript-eslint to v6.18.1 (#15881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-01-15 14:42:44 +08:00
fisker Cheung 8d464ffa67 Update esbuild-visualizer to v0.5.1 (#15838) 2023-12-21 01:28:29 +08:00
fisker Cheung 2ee0016ffc Build: Fix html report (#15807) 2023-12-15 19:28:42 +08:00
1632e25b17 Added a blog post about the new CLI (#15731)
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-12-01 00:48:53 +08:00
SUZUKI Sosukeandfisker 8d64505bd4 Update cspell.json (#15722)
Co-authored-by: fisker <lionkay@gmail.com>
2023-11-28 09:48:14 +08:00
Stephen Wade 3a60cf42a2 Fix spelling issue in ternaries blog post (#15654) 2023-11-14 15:29:40 +08:00
SUZUKI Sosuke 79da291f72 Revert "Revert "Add blog post for experimental ternaries"" (#15618) 2023-11-13 12:01:53 +09:00
SUZUKI Sosuke cb93aaf18a Revert "Add blog post for experimental ternaries" (#15602)
Revert "Add blog post for experimental ternaries (#15594)"

This reverts commit 1d8ee821ed.
2023-11-07 11:20:49 +09:00
1d8ee821ed Add blog post for experimental ternaries (#15594)
* Add blog post for experimental ternaries

* Update `cspell.json`

* Fix broken code blocks

* Add `<!-- truncate --!>` comment

* Add feed back section

* Add sentence before `<!-- truncate -->`

* Add sections

* Fix typo

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* show -> demonstrate

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Alex edits to blog post

---------

Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-11-06 18:40:06 -05:00
SUZUKI Sosuke d0b907620b Run ./scripts/clean-cspell.js (#15508)
Run clean-cspell
2023-10-11 01:58:56 +09:00
4aa5fd1c79 New Ternary Formatting: A Curious Case of the Ternaries (#13183)
Co-authored-by: Alex Rattray <rattrayalex@stripe.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2023-10-09 10:44:30 +09:00
SUZUKI Sosuke 9f06cdd5b0 Process files only supported by plugins (#15433) 2023-09-25 14:45:01 +09:00
fisker Cheung 0d04d78367 Replace cosmiconfig with lilconfig (#15232) 2023-09-02 01:02:22 +08:00
SUZUKI Sosuke c9d62c0690 V3 blog post (#13436) 2023-07-05 21:59:08 +09:00
fisker Cheung 05a32d377f Switch string-width to eastasianwidth (#14793) 2023-05-06 16:56:49 +08:00
fisker Cheung b86e42cc84 Ignore .gitignored files (#14731) 2023-05-04 17:20:05 +08:00
fisker Cheung 686320a88c Fix inconsistent union/intersection type format between TS and Flow (#14654) 2023-04-10 09:58:12 +08:00
Jordan Brownandfisker f95b0c0296 Support Flow Mapped Types (#14619)
Co-authored-by: fisker <lionkay@gmail.com>
2023-04-07 09:56:18 +08:00
SUZUKI Sosuke a478b466a7 Ignore *.0x directory (#14650) 2023-04-03 11:08:33 +09:00
fisker CheungandSosuke Suzuki d797f0cff2 Support TypeScript 5 (#13819)
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-03-15 11:06:31 +08:00
fisker Cheung f83b69111d CLI: Display posix style paths on Windows (#14333) 2023-02-19 20:27:37 +08:00
fisker Cheung 549a59dd7f Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/language-handlebars/printer-glimmer.js
#	src/language-handlebars/utils.js
#	tests/format/handlebars/element-node/jsfmt.spec.js
#	tests/format/misc/errors/handlebars/jsfmt.spec.js
#	yarn.lock
2023-01-29 11:02:56 +08:00
fisker Cheung 310a5b1ba5 Handlebars: Improve HTML void element check (#14110) 2023-01-22 21:50:42 +08:00
Tatsunori Uchino ebb8e13282 Markdown: improve whitespace handling in CJK (#11597) 2022-10-19 11:40:59 +03:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
fisker Cheung 151ab582b5 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/release/yarn.lock
#	yarn.lock
2022-09-06 19:22:51 +08:00
Ryan Vandersmith 98b93cfb03 Add prettier-plugin-motoko to community plugin list (#13406) 2022-09-02 09:03:52 +08:00
fisker Cheung 0b072060b5 Merge branch 'main' into next
# Conflicts:
#	src/language-js/print/flow.js
#	src/language-js/print/literal.js
2022-08-26 10:29:09 +08:00
Joe a2a3849c43 Added prettier-plugin-nginx to Community Plugins list (#13320)
Added [`prettier-plugin-nginx`](https://github.com/joedeandev/prettier-plugin-nginx) to Community Plugins list.
2022-08-21 15:48:37 +08:00
Caleb Jasik 0f19075f5f Add prettier-plugin-astro to list of plugins (#13269)
* Add prettier-plugin-astro to list of plugins

* Order the plugin correctly alphabetically

* Update creator text/link

* Update cspell dictionary
2022-08-12 17:18:55 +09:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +08:00
Georgii Dolzhykov 67efa96da6 Custom parser API: deprecation notice (#13252) 2022-08-07 14:12:17 +03:00
fisker 5daa8eba6c Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	.gitignore
#	website/playground/PrettierFormat.js
#	website/static/worker.js
2022-08-06 11:42:33 +08:00
Georgii Dolzhykovandfisker 2c77149e6a Add benchmark script (#13224)
Co-authored-by: fisker <lionkay@gmail.com>
2022-08-06 11:25:34 +08:00
fisker Cheung e3cb487706 Merge branch 'main' into next
# Conflicts:
#	.eslintrc.cjs
#	package.json
#	src/language-yaml/index.js
#	yarn.lock
2022-07-11 17:03:30 +08: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 3cbc068613 Fix spell check 2022-06-19 12:41:03 +08:00
fisker 21f2ea0f1e Fix 2022-06-19 11:28:28 +08:00
fisker 0e0f879c1a Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	scripts/release/yarn.lock
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/expand-patterns.js
#	src/cli/format.js
#	src/cli/utils.js
#	src/language-js/index.js
#	src/language-js/parse/postprocess/index.js
#	src/language-js/parse/postprocess/typescript.js
#	tests/format/misc/errors/invalid/jsfmt.spec.js
#	tests/integration/__tests__/__snapshots__/support-info.js.snap
#	website/playground/sidebar/SidebarOptions.js
#	yarn.lock
2022-06-19 11:12:22 +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
fisker Cheung 9569ab12aa Merge branch 'main' into next
# Conflicts:
#	.github/renovate.json5
#	.github/workflows/lint.yml
#	package.json
#	src/cli/format.js
#	src/language-js/print/type-annotation.js
#	src/language-js/print/typescript.js
#	src/language-js/utils/index.js
#	tests/format/typescript/enum/jsfmt.spec.js
#	tests/format/vue/with-plugins/jsfmt.spec.js
#	website/yarn.lock
#	yarn.lock
2022-05-28 11:19:03 +08:00
Sosuke Suzuki 36c20c51bc Support Speculation Rules API formatting in HTML (#12882)
* Add script formatting for `speculationrules`

* Fix lint problems
2022-05-17 10:38:46 +09:00
fisker Cheung 77e5589591 Add .gitpod.yml file (#12851) 2022-05-10 13:48:41 +08:00
HosokawaRandfisker Cheung 7ab6198453 Make more callee patterns recognized as "test call callee". (#12779)
* make more pattern recognized as test call callee

* add tests

* add change log

* make collate logic easier to read.

* add typedef

* remove extra processing

* fix filename mistake is-noded-matches.js -> is-node-matches.js

* add correct words to cspell config

* add a comment about copying

* move patterns outside

* Minor tweak

* rename valiable name

* Adding changelog real-world use case

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-05-07 16:44:56 +09:00
fisker Cheung fcc8c484c3 Use yarn 3 (#12599) 2022-05-06 20:27:33 +08:00
Adrian Leonhard 97cbdc3d1d Add prettier-plugin-glsl to community plugins (#12777)
* Add prettier-plugin-glsl to community plugins

* add glsl to cspell.json
2022-05-02 21:48:58 +09:00
fisker Cheung 637c00618c Use published jest-light-runner (#12592) 2022-04-05 10:42:21 +08:00
fisker Cheung 65ce63b4dc Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/vendors/bundle-vendors.mjs
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/language-handlebars/utils.js
#	src/language-html/utils/html-elements-attributes.js
#	vendors/tempy.js
2022-04-01 10:37:35 +08:00