Commit Graph
203 Commits
Author SHA1 Message Date
fisker Cheung cdb1494170 Revert "Switch print/embed to async (#13104)" (#13210) 2022-08-02 18:11:34 +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
fisker Cheung 83400d19b4 Change default value of trailingComma to "all" (#11479) 2022-08-01 11:05:17 +08:00
liuxingbaoyu 3680bb79e1 Update some tests (#13176)
* Revert "Disable a test (#13159)"

This reverts commit 26cf77a5d5.

* remove a test case
2022-07-26 11:30:41 +09:00
Georgii Dolzhykov cd9955f143 Fix range format for function bodies (#13173) 2022-07-25 12:28:24 +03:00
fisker Cheung 26cf77a5d5 Disable a test (#13159) 2022-07-24 00:19:07 +08:00
fisker Cheung 73b8c86cc4 Merge branch 'main' into next
# Conflicts:
#	scripts/tools/bundle-test/yarn.lock
2022-07-23 18:19:22 +08:00
fisker Cheung 8ee0c6354d Fix ifBreak check in fits (#12362) 2022-07-23 18:02:05 +08:00
fisker Cheung 95779099a3 Update acorn to v8.8.0 (#13148) 2022-07-21 21:05:28 +08:00
fisker Cheung 4d4947c284 Merge branch 'main' into next
# Conflicts:
#	src/cli/logger.js
#	src/language-js/print/binaryish.js
#	website/package.json
#	website/yarn.lock
2022-07-19 14:13:01 +08:00
fisker Cheung 8dae4abf41 Switch print/embed to async (#13104) 2022-07-17 16:10:06 +08:00
Sosuke Suzuki 89f90fc013 Insert spaces in pipe (#13100)
* Insert spaces to pipe arguments

* Update snapshots

* Add changelog

* Fix lint problem
2022-07-16 17:18:55 +09: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
fisker Cheung 1363ad1a88 Fix 2022-07-11 15:38:30 +08:00
fisker Cheung 4b4e3a4666 Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2022-07-11 15:33:30 +08:00
fisker Cheung 811b591ee8 Update dependency jest-docblock to v28.1.1 (#13054) 2022-07-11 10:03:49 +08:00
fisker Cheung a043ac0d73 Update dependency @typescript-eslint/typescript-estree to v5.30.0 (#13053) 2022-06-28 14:22:10 +08:00
Huáng Jùnliàng 9dd761a6e4 fix: JSON modules disable named exports (#13035) 2022-06-23 02:05:46 +08:00
Huáng Jùnliàng b0201e01ef fix: JSON modules disable named exports (#13031) 2022-06-21 10:56:00 +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
chimuraiandfisker Cheung 794d9d1558 bugfix(graphql): Keep useful empty lines in description (#13013)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-16 13:33:09 +08:00
fisker Cheung d2bcaea121 Throw errors for invalid TSEmptyBodyFunctionExpression node (#12982) 2022-06-14 12:33:44 +08:00
Sosuke Suzuki 97bab8f984 Update angular-estree-parser (#12993)
* Update `angular-estree-parser`

* Add tests

* Add changelog
2022-06-11 20:08:46 +09:00
Sosuke Suzuki 7f9a08762d Update dependency flow-parser to v0.180.0 (#12990)
* Update `flow-parser`

* Update snapshots
2022-06-11 00:06:22 +09:00
fisker Cheung c22ea97e00 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	src/language-html/print/tag.js
#	src/main/load-parser.js
#	src/main/parser.js
#	yarn.lock
2022-06-06 22:00:41 +08:00
Sosuke Suzuki be9d63e543 Avoid printing attribute per line in Vue SFC blocks (#12895)
* Avoid print single attribute perline for Vue SFC blocks

* Add tests

* Add changelog

* Fix typo

* Add more tests
2022-06-04 23:25:27 +09:00
Sosuke Suzuki a808df643d Update @typescript-eslint/typescript-estree to 5.27.0 and move tests (#12959)
* Install latest typescript-estree

* Move tests for type parameter of typeof

* Update changelog
2022-06-01 06:47:51 +09:00
fisker Cheung 23f1ad5f4e Fix 2022-05-28 11:35:44 +08: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 9c11aa141a Add tests for TS 4.7 features (#12924)
* Add tests for instantiation expressions

* Add tests for infer extends

* Add tests for optional variance

* Update changelog
2022-05-28 03:37:30 +09:00
HosokawaR a089819223 fix formatting for typescript Enum with computed members (#12930)
* fix formatting for typescript Enum with computed members

* add change log

* remove extra examples in change log
2022-05-27 20:44:17 +09:00
Sosuke Suzuki 3147244f55 Update dependencies to support TypeScript 4.7 (#12921)
* Update `@typescript-eslint/typescript-estree` to 5.26.0

* Update `typescript` to `4.7.1-rc`

* Fix syntax kind

* Add `jsdoc_only_types.ts` to unstable tests

* Make printing jsdoc type stable

* Update typescript
2022-05-27 01:46:31 +09:00
Sosuke Suzuki 2fc6e5dd4f Support TS 4.7 optional variance (#12900)
* Print `in` and `out`

* Add tests

* Add tests for jsx
2022-05-22 03:33:05 +09:00
Sosuke Suzuki 1eecc85985 Support TS 4.7 instantiation expression (#12898)
* Handle `TSInstantiationExpression`

* Print `typeParameters` for `TSTypeQuery`

* Add tests

* Add more tests
2022-05-22 03:30:47 +09:00
Sosuke Suzuki bc6539c15c Add tests for extends constraints for infer (#12897) 2022-05-22 03:28:47 +09: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
Jed Fox de16657ba0 Remove all references to Gitter (#12885) 2022-05-16 11:08:44 -04:00
HosokawaR 765d78305f Fix exports comment formats. (#12860)
* fix exports comment formats

* add tests

* add change log

* rename function name

* merge logic

* add tests to compare comment formats in `export` and `import`
2022-05-15 22:39:55 +09:00
fisker Cheung e1f972e90f Improve format test setup (#12854) 2022-05-10 15:43:02 +08:00
051fdd32f3 Update dependency graphql to v16 (#12835)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-08 20:20:34 +08:00
c87fbad0c0 Update dependency flow-parser to v0.177.0 (#12824)
* Update dependency flow-parser to v0.177.0

* Fix snapshot

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-05-08 20:08:37 +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 193365eb71 Load plugins asynchronously (#12790) 2022-05-06 09:27:54 +08:00
fisker Cheung c1f6d021e5 Use named export instead of default export (#12740) 2022-05-05 15:03:08 +08:00
fisker Cheung e14411c278 Support async parser (#12748) 2022-05-04 11:15:48 +08:00
053022f5ed Infer Stylus parser in Vue SFC (#12707)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-05-01 23:01:24 +08:00
fisker b4c74de822 Merge branch 'main' into next
# Conflicts:
#	src/cli/format.js
#	src/language-css/utils/has-string-or-function.js
#	src/language-css/utils/is-scss-variable.js
2022-05-01 21:41:20 +08:00
Sosuke Suzuki 504d751036 Preserve blank line between export specifiers (#12746)
* Preserve blank line between export specifiers

* Add changelog

* rename
2022-04-29 17:42:42 +09:00
fisker Cheung c6d6b25833 prettier.{format,formatWithCursor,check}() are now async (#12574) 2022-04-29 14:22:24 +08:00