Commit Graph
3288 Commits
Author SHA1 Message Date
fisker Cheung e234b73a99 Rename functions (#14735) 2023-04-22 22:19:41 +08:00
renovate[bot]andfisker Cheung ab9792cc00 Update dependency flow-parser to v0.204.0 (#14710)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-22 22:18:48 +08:00
SUZUKI Sosukeandfisker Cheung cfb3b87efb Fix trailing coma print in type prameters, improve jsx parse (#14688)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-21 13:18:29 +08:00
fisker Cheung b5043bcca5 Stop formatting unknown code with babel parser (#14718) 2023-04-21 13:12:11 +08:00
fisker Cheung 7f292bd8f3 Simplify printIntersectionType (#14728) 2023-04-20 15:09:19 +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 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
renovate[bot]andfisker Cheung a950407093 Update dependency hermes-eslint to v0.10.1 (#14651)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-03 10:15:31 +08:00
fisker Cheung 0af711b66c Fix signature of embed (#14598) 2023-04-03 09:42:49 +08:00
Adrian Leonhard 5a267fa4be index.d.ts: Printer: add missing getCommentChildNodes (#14648) 2023-04-03 02:48:13 +09:00
fisker Cheung a78e514d77 Improve doc printer when printWidth: Infinity (#14638) 2023-03-31 16:47:26 +08:00
fisker Cheung df7771caf5 CLI: Use absolute path internally (#14632) 2023-03-31 09:04:33 +08:00
fisker Cheung 233ae12d26 Quote patterns in error message (#14631) 2023-03-30 16:57:01 +08:00
fisker Cheung d70f7b989b Fix inconsistent option normalization (#14622) 2023-03-29 17:48:29 +08:00
fisker Cheung 97fda8c11d Remove showInternal option from getSupportInfo() (#14621) 2023-03-29 14:43:01 +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 d0eb185980 Move embed check together with print logic (#14613) 2023-03-28 16:30:36 +08:00
fisker Cheung 3614c17d24 Rewrite HTML embed format (#14606) 2023-03-28 16:20:30 +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 bae1eb4a14 Move ts script check into embed print (#14559) 2023-03-27 14:22:54 +08:00
fisker Cheung 919670df68 Refactor printParenthesizedValueGroup (#14540) 2023-03-27 14:17:49 +08:00
fisker Cheung 3c7e2173e4 Stop insert unnessary leading semicolon in vue event binding (#14557) 2023-03-27 13:37:05 +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
SUZUKI Sosukeandfisker Cheung 00e59ed008 Transform .at to property access to improve performance (#14590)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-26 04:14:48 +09:00
fisker Cheung 4edb68ac50 Remove dead code (#14554) 2023-03-24 18:53:23 +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 71339e3607 Remove outdated workaround (#14578) 2023-03-24 14:44:03 +08:00
fisker Cheung 368620a650 Move avoidAstMutation to printer.experimentalFeatures (#14579) 2023-03-24 14:36:10 +08:00
fisker Cheung ad9fd35b10 Perf: Skip printComments if printer don't have printComment function (#14468) 2023-03-24 14:25:36 +08:00
fisker Cheung 5f4a98e3bc Throw errors when parser can't be found (#14577) 2023-03-24 14:07:45 +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