Commit Graph
3494 Commits
Author SHA1 Message Date
5ceeccf38d chore(deps): update dependency typescript to v5.4.3 (#16181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2024-04-08 14:26:54 +08:00
Seiya 063978a592 Correct invalid fill() in markdown paragraph print (#16158) 2024-04-06 19:25:30 +09: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
Kirk Waiblingerandfisker Cheung 48c9bc4aea Yield expression parens (#16194)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-04-04 16:39:31 +09:00
Seiyaandfisker d970deed6b Improve wrapping for codeblock in markdown and jsx in mdx (#15993)
Co-authored-by: fisker <lionkay@gmail.com>
2024-03-20 15:41:38 +09:00
Keith Layne f62bf4a191 Format embedded GQL in template literal statements (#16064)
Fixes #16007
2024-03-11 13:48:29 +09:00
Kevin Gibbons d50a4e4639 allow linebreaks in member expressions in template interpolations (#16116)
* allow linebreaks in member expressions in template interpolations

* lint

* add changelog
2024-03-10 12:43:37 +09:00
fisker Cheung 41baabd627 Stricter AST check for property keys (#16060)
* Stricter AST check for property keys

* Use utility
2024-03-09 21:03:54 +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
fisker Cheung a8d9536eed Remove outdated hack for diff package (#16083)
* Remove outdated hack for `diff` package

* Deep import

* Fix

* Share from core
2024-03-09 20:54:21 +09:00
fisker Cheung 765fd0823e Exclude optional call from isTestCall (#16084)
Ignore optional call from `isTestCall`
2024-03-09 20:53:23 +09:00
三咲智子 Kevin DengandSosuke Suzuki 765aa10dfe fix: no semi for readonly class field (#16133)
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2024-03-09 20:46:47 +09:00
renovate[bot]andfisker Cheung 28a537ef20 chore(deps): update typescript-eslint to v7 (major) (#16086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-02-18 18:24:29 +08:00
fisker Cheung be0fcc7d95 Remove dead code (#16061) 2024-02-18 18:00:15 +08:00
fisker Cheung 5a946f4c52 Minor tweak to printPropertyKey (#16059) 2024-02-18 17:59:36 +08:00
fisker Cheung c4af355521 Fix isStringKeySafeToUnquote (#16058) 2024-02-18 17:59:06 +08:00
fisker Cheung 57fdd9a780 Fix getCallArgumentSelector (#16041) 2024-02-18 17:58:26 +08:00
Jaswanth-Sriram-Veturiandfisker 2576e11863 Improve formatting of React useImperativeHandle hook (#16070)
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-18 17:25:53 +08:00
Matt d'Entremont 4aebc0ecc8 Add "--write" to the prettier failure output (#16062) 2024-02-14 09:16:13 +00:00
Sam Zhou f4b3b7b1e2 feat: declare namespace printing support for Flow (#16066) 2024-02-11 22:28:50 +09:00
JounQin a9bb9ebafd feat: support redirect to another option directly without value (#16038) 2024-02-08 23:40:17 +09:00
SUZUKI Sosuke 06c9d77bc5 perf: Use logical expression instead of regexp for isUnitTestSetUp (#16035) 2024-02-08 23:05:58 +09:00
fisker Cheung 99bc9d0b6d Improve readability of isStringKeySafeToUnquote (#16056) 2024-02-07 16:44:36 +08:00
fisker Cheung 7ceb185ee4 Refactor printPropertyKey (#16055) 2024-02-07 15:59:49 +08:00
SUZUKI Sosukeandfisker a642ecb373 Unquote keys in import attributes (#15888)
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-07 14:54:39 +08:00
fisker Cheung b7a2241cba Add missing parentheses to TSInferType (#16031) 2024-02-07 02:49:14 +08:00
renovate[bot]andfisker e7cfd62d78 chore(deps): update typescript-eslint to v6.21.0 (#16040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-06 19:17:29 +08:00
SUZUKI Sosuke d170b8f31d perf: Add fast path for printNumber (#16034)
* Add fast path to `printNumber`

* Remove code point check!
2024-02-06 16:05:17 +09:00
fisker Cheung a6b0a1fb09 Extract and simplify printTable (#16032) 2024-02-04 19:51:54 +08:00
fisker Cheung d467987b4a Refactor ModuleExpression print (#16028) 2024-02-04 14:39:25 +08:00
fisker Cheung d49781f488 Simplify UpdateExpression print (#16027) 2024-02-04 14:33:56 +08:00
fisker Cheung 384e2b4959 Remove getDocParts (#16026) 2024-02-04 14:33:39 +08:00
fisker Cheung 76b8f95061 Rename parameters in massageAstNode (#16024) 2024-02-04 14:32:54 +08:00
renovate[bot]andfisker 8cbee2e217 chore(deps): update glimmer to v0.88.1 (#15991)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-04 00:35:56 +08:00
fisker Cheung 9fb32a1a6b Minor refactor to property print (#15924) 2024-02-03 20:50:44 +08:00
renovate[bot]andfisker 014ee5d474 chore(deps): update dependency hermes-parser to v0.19.0 (#16014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-03 19:12:29 +08:00
SUZUKI Sosukeandfisker Cheung cc6435cc75 Use "json" parser for tsconfig.json by default (#16012)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-02-03 18:49:18 +08:00
JounQin 678de0289c fix: do not format computed template which could be unexpected (#15972) 2024-01-23 10:36:15 +09:00
SUZUKI Sosuke 2fe7f4193a Support Angular inline styles as single template literal (#15968) 2024-01-21 18:10:21 +09:00
fisker Cheung 1cd4d9c160 Fix JSONC filenames list (#15947) 2024-01-17 18:02:25 +08:00
fisker Cheung c566c9df08 Fix parser inference (#15927) 2024-01-16 10:34:05 +08:00
fisker Cheung be17405669 Simplify isSimpleCallArgument (#15923) 2024-01-16 10:31:56 +08:00
fisker Cheung 10762eeaa0 Improve keyword detection in TSModuleDeclaration (#15925) 2024-01-16 10:28:40 +08:00
fisker Cheung 70c9c56c67 Improve babel parse error message (#15928) 2024-01-16 10:27:49 +08:00
fisker Cheung 1e1942dc46 Remove outdated babel reasonCode (#15929) 2024-01-16 10:27:02 +08:00
fisker Cheung d386ff8f7c Simplify printBinaryCastExpression (#15932) 2024-01-16 10:26:33 +08:00
fisker Cheung 5f16b6b66c Simplify loc.js (#15933) 2024-01-16 10:26:09 +08:00
SUZUKI Sosuke cb8004f3f1 Fix formatting error on optional call expression and member chain (#15920) 2024-01-14 11:50:28 +09:00
Eelco Lempsink 0bfcb2d5a5 Fix css embed in JSX when using (only) a spread attribute (#15896) 2024-01-14 11:42:25 +09:00
SUZUKI Sosuke 7e862bbc41 Fix formatting error on member chain (#15915) 2024-01-13 04:12:55 +09:00