161 Commits
Author SHA1 Message Date
fisker Cheung b99012b48c Build: transform String.raw (#18134) 2025-10-27 23:24:02 +08:00
fisker Cheung eca05c1750 Fix visitor keys for TypePredicate (#18090) 2025-10-17 04:10:37 +08:00
fisker Cheung 9871b4931c Fix vistor keys for FunctionExpression (#18084) 2025-10-16 07:18:38 +08:00
fisker Cheungandautofix-ci[bot] 858ace6ffa Forbid rename path in callbacks (#18038)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-11 01:46:03 +08:00
fisker Cheung 65d1dfb422 Cleanup {JSXOpeningElement,TSClassImplements,TSInterfaceHeritage}.typeParameters (#18028) 2025-10-10 16:41:24 +08:00
Nicolò Ribaudoandfisker 6437b6dadf Update Babel to v8 (#15157)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-24 10:31:22 +08:00
fisker Cheung 857b380010 Improve editorConfigToPrettier (#17512) 2025-09-24 06:02:25 +08:00
Sam Zhou e30c8e6184 Support new Flow feature: opaque type with lower and upper bounds (#17792) 2025-08-13 09:53:29 +08:00
fisker Cheungandautofix-ci[bot] 95ef24d1f0 Support "Discard Bindings" proposal (#17708)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-04 15:41:42 +08:00
fisker Cheung acd25a9aa6 Support flow "match" syntax (#17681) 2025-08-04 15:27:10 +08:00
renovate[bot]andfisker b864637ebd chore(deps): update dependency @prettier/html-tags to v1.1.0 (#17756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-07-26 12:27:05 +08:00
fisker Cheungandautofix-ci[bot] 7fb9875413 Allow plugin override builtin parsers when inferring parser (#17549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 17:23:49 +08:00
fisker Cheung 3c1475b1e7 Refactor Enum print (#17497) 2025-05-27 11:24:41 +08:00
fisker Cheung a358006a92 Rewrite TSMappedType print (#17498) 2025-05-27 09:11:00 +08:00
fisker Cheung d4fd92e266 Bundle "Experimental CLI" (#17396) 2025-05-06 10:34:05 +08:00
fisker Cheung 45d3498377 Switch html-tag-names to @prettier/html-tags (#17408) 2025-04-27 03:06:22 +08:00
fisker Cheung b289ecbb19 Remove support for tupleAndRecord (#17363) 2025-04-17 04:53:05 +08:00
fisker Cheung b3d1f8cdc2 Add mjml parser (#17339) 2025-04-14 08:12:53 +08:00
Seiyaandfisker Cheung 97d8115d18 Resolve rule of fill violation in JSX and add assertion. (#16700)
* add stricter assertion into fill()

* resolve rule of fill issue. some comments and naming can be problematic.

* cleanup

* update comments

* rename printWhitespace -> printStringOrLine

* refine isValidSeparator() a bit

* remove FIXME comment for fixed issue

* fix idempotency problem in MDX

* add changelog

* rename assertDocFill() -> assertDocFillParts()

* add test for assertDocFillParts()

* replace cleanDoc(doc) === "" by isEmptyDoc(doc)

* Update src/document/utils/assert-doc.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-01-21 13:09:32 +09:00
renovate[bot]andfisker 5e610717c0 chore(deps): update babel to v7.26.5 (#16989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-01-20 14:02:23 +08:00
renovate[bot]andfisker 2c8440ebee chore(deps): update typescript-eslint to v8.13.0 (#16825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-11-09 17:28:41 +08:00
fisker Cheung 51d943abcf Remove outdated node type "Import" (#16831) 2024-11-09 12:00:34 +08:00
renovate[bot]andfisker 3e4b452b4a chore(deps): update babel to v7.26.2 (#16811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-10-31 18:24:42 +08:00
fisker Cheung 1abee7352f Build: Add experimental_preserveFormat to @babel/generator (#16804) 2024-10-31 00:05:28 +08:00
renovate[bot]andfisker 9066ba83a2 chore(deps): update babel to v7.26.0 (#16795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-10-29 17:39:52 +08:00
Seiya 94fa86e164 loosen computational complexty check for printing fill (#16708) 2024-09-30 15:37:36 +08:00
fisker Cheung 07b468917e Remove blank lines between imports (#16450) 2024-09-29 17:56:37 +08:00
fisker Cheung 4b9c16703c Remove support for DecimalLiteral (#16643) 2024-09-29 17:13:12 +08:00
Mark Ameryandfisker Cheung d28d40ac0c Reduce how much text needs to be diffed when computing cursor positions (#15709)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-09-27 21:35:32 +08:00
fisker Cheung d2c415deae Update meriyah to v6 (#16667) 2024-09-18 19:48:57 +08:00
renovate[bot]andfisker Cheung c067d27673 chore(deps): update babel to v7.25.6 (#16627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-09-01 02:24:50 +08:00
renovate[bot]andfisker Cheung 0a85cb07eb chore(deps): update dependency file-entry-cache to v9.1.0 (#16623)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-08-31 05:22:14 +08:00
Seiya c921abee76 Improve computational time complexity for printing fill() (#16595) 2024-08-24 08:23:59 +09:00
fisker Cheung fb4fa9b532 Sort visitorKeys in test (#16606) 2024-08-24 01:21:13 +08:00
fisker CheungandAlexander Kachkaev c60eb83d59 Stop mutate doc.parts when printing fill (#13315)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2024-07-26 19:51:00 +08:00
renovate[bot]andfisker 06ece395be chore(deps): update dependency html-ua-styles to v0.0.8 (#16481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-16 19:40:47 +08:00
SUZUKI Sosuke 5ca2fc9be8 Support Angular @let declaration syntax (#16474)
gmail.com>
2024-07-13 18:24:57 +09:00
renovate[bot]andfisker bfcfdccdf8 chore(deps): update babel to v7.24.8 (#16472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-12 16:15:45 +08:00
fisker Cheung 6d265ec100 Use Array#findLastIndex (#16384) 2024-06-18 08:00:16 +09:00
fisker Cheung c03a12ad2b Enable require-unicode-regexp and regexp/strict rule (#16408) 2024-06-18 07:52:54 +09:00
fisker Cheung 8f33827a5c Update typescript-eslint to v8 (#16333) 2024-06-13 10:33:45 +08:00
adcbc8bedb Fix handlebars path expressions starts with @ (#16358)
Co-authored-by: prince.yadav <prince1.yadav@tataaig.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-06-11 10:08:12 +08:00
fisker Cheung 58d0f9d630 Minor tweak to syntax transform script (#16361) 2024-06-11 09:18:00 +08:00
renovate[bot]andfisker 86268eb69a chore(deps): update eslint related dependencies (major) (#16208)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-06-05 11:32:07 +08:00
George Zahariev 105bb7beff Flow: add support for bigint enums (#16268) 2024-05-09 11:26:13 +08:00
renovate[bot]andfisker 36bdf9554b chore(deps): update glimmer to v0.91.1 (#16171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-05-06 11:37:22 +08:00
Sam Zhou ae8dcc48f5 Component syntax and related language features printing support (#16191)
* Component syntax and related language features printing support

Relevant Flow docs:
- https://flow.org/en/docs/react/component-syntax/
- https://flow.org/en/docs/react/render-types/

* Update issue number

* declare new test as unstable

* fix tests
2024-04-04 23:10:00 +09:00
Travis Chapmanandfisker Cheung 3ba739618a Add unit test coverage for parser-and-printer.js (#16082)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-03-09 20:55:26 +09:00
Sam Zhou f4b3b7b1e2 feat: declare namespace printing support for Flow (#16066) 2024-02-11 22:28:50 +09:00
fisker Cheung 1dc924f2f2 Add jsonc parser (#15831) 2024-01-02 10:59:34 +08:00