Commit Graph
2578 Commits
Author SHA1 Message Date
fisker Cheung fb948bb15f Integration test: Rename runPrettier to runCli (#14687) 2023-04-11 08:44:23 +08:00
fisker Cheung 578f093d30 Accept multiple --ignore-paths (#14332) 2023-04-10 10:51:46 +08:00
fisker Cheung bec997e85c Fix cursor tracking inside JSXText (#14163) 2023-04-10 10:44:31 +08:00
fisker Cheung ecfa324b69 Format <script> inside SVG (#14400) 2023-04-10 10:43:48 +08:00
fisker Cheung 686320a88c Fix inconsistent union/intersection type format between TS and Flow (#14654) 2023-04-10 09:58:12 +08:00
fisker Cheung 1e50206d28 Improve new line after { detection in TSMappedType (#14659) 2023-04-10 09:56:39 +08:00
SUZUKI Sosuke 4a949a2f23 Line breaking after extends in type parameters (#14672) 2023-04-09 12:58:54 +09:00
fisker Cheung cddb59d211 Don't apply plugin default options from unused plugins (#14664) 2023-04-07 11:08:41 +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
fisker Cheung 02a50e5bb9 Angular: Support computed optional member expression (#14658) 2023-04-07 09:53:59 +08:00
fisker Cheung e4349cae71 Bump @prettier/parse-srcset to v3 (#14665) 2023-04-05 16:51:32 +08:00
fisker Cheung 78b0a6bb80 Fix plugin resolve logic (#14663) 2023-04-04 10:53:50 +08:00
fisker Cheung 1d320ff85b Add a writeFormattedFile to mock (#14657) 2023-04-04 09:08:44 +08:00
fisker Cheung 42584d48d2 Remove outdated visitor key for TSAbstractMethodDefinition (#14662) 2023-04-04 09:07:29 +08:00
fisker Cheung 4965a790cb Forbid decorators on object property (#14661) 2023-04-04 09:07:15 +08:00
fisker Cheung 1d4f243d72 Ignore/generate files during --cache test (#14629) 2023-04-03 16:10:40 +08:00
fisker Cheung df7771caf5 CLI: Use absolute path internally (#14632) 2023-03-31 09:04:33 +08:00
fisker Cheung c933bffc49 Test: Remove final new line in stdout/stderr (#14630) 2023-03-30 14:25:28 +08:00
chaxus 053bc69c76 Add less test case (#14626) 2023-03-30 01:23:17 +08:00
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