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 Brown and fisker
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 Cheung and Sosuke 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 Cheung and Georgii 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 Dolzhykov and fisker
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 Suzuki and Simon 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
HosokawaR and fisker 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
fisker Cheung and Alexander Kachkaev
c9be8d1e0e
Minor tweak to the website ( #12522 )
...
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2022-03-27 21:52:17 +08:00
fisker Cheung
c95c899b6f
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/format.js
# src/cli/logger.js
# src/cli/options/get-options-for-file.js
# src/cli/options/parse-cli-arguments.js
# src/main/core.js
# tests/config/install-prettier.js
# vendors/execa.js
# vendors/mem.js
# vendors/string-width.js
# vendors/tempy.js
# yarn.lock
2022-03-17 09:44:08 +08:00
eb671dd983
2.6 blog post ( #12412 )
...
* Generate
* Generate
* Add TS4.6 changelog
* Regenerate
* Add changelog to switch to esbuild
* Add category
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Address review
* Regenerate
* Highlight TS 4.6
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Regenerate
* Update changelog_unreleased/typescript/12390.md
Co-authored-by: Jed Fox <git@jedfox.com >
* Add thanks message for sponsors
* Address review!
* Update cspell.json
* Fix link of Ubie
* Generate
* Add `Thanks to our sponsors!`
* Update cspell
* Address review
* Update changelog_unreleased/blog-post-intro.md
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
* Regenerate
* Add `--print-truncate` option
* Address review
* Generate
Co-authored-by: Jed Fox <git@jedfox.com >
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru >
2022-03-16 13:25:48 +09:00
fisker Cheung
ec2b75dce9
Merge branch 'main' into next
...
# Conflicts:
# .github/workflows/validate-vendor-versions.yml
# package.json
# scripts/build/bundler.mjs
2022-02-28 21:06:23 +08:00
fisker Cheung
a67a5c2f94
Remove vendors/ ( #12377 )
2022-02-28 19:48:14 +08:00
Alexander Sennikov and fisker Cheung
2cde2dbf9d
Add prettier-plugin-jsonata to the Plugins page in docs ( #12347 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-02-22 09:47:46 +08:00
fisker Cheung
52c9a20e2c
Merge branch 'main' into next
...
# Conflicts:
# package.json
# src/cli/index.js
# tests/config/install-prettier.js
# tests/format/yaml/block-literal/jsfmt.spec.js
# tests/integration/__tests__/file-info.js
# yarn.lock
2022-02-21 16:12:59 +08:00
Sosuke Suzuki
162097e2d2
Format .swcrc as a JSON file ( #12320 )
...
* Format `.swcrc` as JSON
* Test `.swcrc` JSON formatting
* Add changelog
* Update snapshots
* Address reviews
* Update `cspell.json`
* Address review
2022-02-18 08:39:12 +09:00
fisker Cheung
f0b63f3dff
Merge branch 'main' into next
...
# Conflicts:
# CONTRIBUTING.md
# cspell.json
# docs/options.md
# package.json
# scripts/build/bundler.mjs
# src/language-css/loc.js
# src/language-css/parser-postcss.js
# src/language-css/utils/index.js
# tests/format/js/arrows-bind/jsfmt.spec.js
# tests/format/js/async-do-expressions/jsfmt.spec.js
# tests/format/js/bind-expressions/jsfmt.spec.js
# tests/format/js/classes/top-level-super/jsfmt.spec.js
# tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
# tests/format/js/decorator-comments/jsfmt.spec.js
# tests/format/js/decorators-export/jsfmt.spec.js
# tests/format/js/decorators/jsfmt.spec.js
# tests/format/js/do/jsfmt.spec.js
# tests/format/js/export-default/escaped/jsfmt.spec.js
# tests/format/js/export-extension/jsfmt.spec.js
# tests/format/js/export-star/jsfmt.spec.js
# tests/format/js/exports/jsfmt.spec.js
# tests/format/js/invalid-code/jsfmt.spec.js
# tests/format/js/logical-assignment/jsfmt.spec.js
# tests/format/js/multiparser-invalid/jsfmt.spec.js
# tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
# tests/format/js/object-property-comment/jsfmt.spec.js
# tests/format/js/partial-application/jsfmt.spec.js
# tests/format/js/pipeline-operator/jsfmt.spec.js
# tests/format/js/private-in/jsfmt.spec.js
# tests/format/js/record/jsfmt.spec.js
# tests/format/js/reserved-word/jsfmt.spec.js
# tests/format/js/strings/jsfmt.spec.js
# tests/format/js/throw_expressions/jsfmt.spec.js
# tests/format/js/trailing-whitespace/jsfmt.spec.js
# tests/format/js/v8_intrinsic/jsfmt.spec.js
# tests/format/misc/errors/js/literal/jsfmt.spec.js
# tests/format/misc/errors/js/object/jsfmt.spec.js
# tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
# tests/integration/__tests__/bundle.js
# tsconfig.json
# yarn.lock
2022-02-09 09:22:32 +08:00
fisker Cheung
b1e59dd70a
Save vendor licenses for build script ( #12258 )
2022-02-08 10:33:09 +08:00
Sosuke Suzuki
6819dc91f6
Add an esbuild plugin to add @ts-nocheck annotation for vendors ( #12248 )
...
* Enable prettier
* Add `esbuildPluginTsNocheck`
* Run build
* Update cspell.json
2022-02-06 23:25:29 +09:00