Commit Graph
2559 Commits
Author SHA1 Message Date
fisker Cheung d70f7b989b Fix inconsistent option normalization (#14622) 2023-03-29 17:48:29 +08:00
fisker Cheung cffb812912 Improve getSupportInfo (#14620) 2023-03-29 14:01:47 +08:00
fisker Cheung 75cd9992f0 Recognize the new search element (#14615) 2023-03-29 09:14:24 +08:00
fisker Cheung 3f1153ba27 Add parens to head of arrow function body instead of whole expression (#14599) 2023-03-29 09:13:46 +08:00
Seiyaandfisker Cheung 9500403c1d Fix a bug: css urls are incorrectly stripped of commas (#14476)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-29 09:12:38 +08:00
fisker Cheung 186a177017 Rename .mjs files to .js (#14605) 2023-03-28 16:18:53 +08:00
Sam Zhouandfisker b7ab34073e Support conditional type and infer type in Flow (#14573)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-28 09:04:35 +08:00
fisker Cheung 3c7e2173e4 Stop insert unnessary leading semicolon in vue event binding (#14557) 2023-03-27 13:37:05 +08:00
fisker c4d7a4bce7 Update snapshot 2023-03-27 11:00:14 +08:00
fisker 9329924de4 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	tests/format/typescript/decorators/jsfmt.spec.js
#	yarn.lock
2023-03-27 10:58:40 +08:00
Seiyaandfisker 1bf47c1e95 Format TS expressions when any script tag has lang="ts" (#14587)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-27 10:47:54 +08:00
fisker Cheung d883834963 Test invalid TOML config (#14583) 2023-03-24 16:30:56 +08:00
fisker dd779dae55 Merge branch 'patch-release'
# Conflicts:
#	.git-blame-ignore-revs
#	package.json
#	yarn.lock
2023-03-24 16:24:07 +08:00
fisker Cheung f9fae7f34c Allow multiple decorators on same getter/setter (#14584) 2023-03-24 16:08:46 +08:00
fisker Cheung 94660f6cf0 Support parse void element in vue (#14560) 2023-03-24 14:51:04 +08:00
fisker Cheung fc81cc13cb Fix plugin loading cache (#14576) 2023-03-24 13:19:18 +08:00
Seiyaandfisker e154250e19 Format TypeScript expressions in Vue template attributes (#14506)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-24 09:10:49 +08:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker b61ef0d234 Merge 14208 into next 2023-03-23 09:51:35 +08:00
Michael Voříšekandfisker Cheung c6e026ea28 Fix line break in CSS declaration with comma (#14208)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-23 09:27:14 +08:00
fisker Cheungandrenovate[bot] 8b5687ac4d Update dependency flow-parser to v0.202.0 (#14555)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-22 15:05:50 +08:00
fisker Cheung a3b352ce90 Fix Vue filter detection (#14542) 2023-03-22 08:56:32 +08:00
fisker 1c80e0104f Fix tests 2023-03-21 16:33:16 +08:00
fisker cfc8bbc662 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	src/language-js/parse/postprocess/typescript.js
#	tests/format/typescript/type-arguments-bit-shift-left-like/jsfmt.spec.js
#	yarn.lock
2023-03-21 16:31:06 +08:00
fisker Cheung 44aef0b1ba Allow decorator on private members and class expressions (#14548) 2023-03-21 16:13:11 +08:00
fisker Cheung 019ebe5207 Support TypeScript 5 (backport #14391 and #13819) (#14512) 2023-03-20 13:57:48 +08:00
renovate[bot]andfisker f85e7b07bf Update dependency @babel/parser to v7.21.3 (#14522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-20 10:29:46 +08:00
fisker 883324dbb6 Merge branch 'main' into next
# Conflicts:
#	scripts/tools/bundle-test/package.json
#	scripts/tools/bundle-test/yarn.lock
#	src/language-js/needs-parens.js
#	tests/format/typescript/typeof/jsfmt.spec.js
#	website/package.json
#	website/yarn.lock
2023-03-18 08:57:03 +08: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 3fc6298c0e Stop evaluate graphql visitor keys (#14504) 2023-03-13 18:23:56 +08:00
fisker Cheung e2c5da38f4 Fix builtin plugins (#14502) 2023-03-13 12:34:56 +08:00
fisker Cheung 6c9ba400fa Bundle printers in plugins (#14354) 2023-03-13 09:20:12 +08:00
fisker Cheung 18baca62c9 Build: Auto generate types files for plugins (#14462) 2023-03-13 09:17:24 +08:00
fisker Cheung 4585fb0512 Add utilities to get descendants (#14470) 2023-03-13 09:12:48 +08:00
fisker Cheung 06aa1a3501 Ignore htmlWhitespaceSensitivity when formatting Vue SFC root blocks (#14401) 2023-03-13 09:12:11 +08:00
921eaf4690 Break on TypeScript parameter properties (#14402)
* add test for parameter properties

* break parameters for TypeScript parameter properties

ISSUE: #5666

* add a test pattern

* add changelog

* use getFunctionParameters

* Fix bad rebase

* Rename variables

* More tests

* Rename variable

* Fix snapshots

* Fix changelog

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-03-12 00:06:39 +09:00
fisker Cheung 80419fa69e Remove unnecessary parentheses around class expression (#14409) 2023-03-09 15:22:27 +08:00
fisker Cheung dbd5e3fe26 Add test for #14454 (#14471) 2023-03-09 09:51:29 +08:00
fisker Cheung 9bfebb4062 Fix perf test scripts (#14460) 2023-03-08 09:18:45 +08:00
fisker Cheung f1b18f2319 Add parentheses to TypeofTypeAnnotation (#14458) 2023-03-08 09:16:03 +08:00
fisker Cheung 134f6078e1 Add document/public.js to export public apis, remove internal utils (#14456) 2023-03-07 08:54:11 +08:00
fisker Cheung 8036248b0a Move prettier-ignored node print into estree printer (#14406) 2023-03-06 15:40:18 +08:00
fisker Cheung cb25bd31f5 Don't trim in html insertPragma (#14441) 2023-03-06 10:47:17 +08:00
fisker CheungandSUZUKI Sosuke aee8e3b0c2 Simplify HTML embed language parser inference (#14440)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2023-03-06 09:24:08 +08:00
renovate[bot]andfisker 444876025f Update dependency @babel/parser to v7.21.2 (#14413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-02-26 18:10:17 +08:00
fisker Cheung 595a2beebc Add WhitespaceUtils (#13923) 2023-02-24 15:41:20 +08:00
fisker Cheung 3662619f6f Linting 2023-02-24 09:47:44 +08:00
fisker Cheung 4a26d88f9a Merge branch 'main' into next
# Conflicts:
#	src/language-js/needs-parens.js
#	tests/config/format-test.js
2023-02-24 09:40:12 +08:00
fisker Cheung bc098779c4 Add missing parentheses for decorator (#14393) 2023-02-24 09:20:34 +08:00
fisker Cheung 5f68f86621 Improve JSON parse error (#14398) 2023-02-24 09:20:03 +08:00