Commit Graph
538 Commits
Author SHA1 Message Date
Sung Ye Inandfisker Cheung 4a39c117d1 Handle exception in needs parens with optional chaining (#16500)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-07-27 15:11:27 +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 8768870c15 chore(deps): update dependency meriyah to v5 (#16508)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-26 19:25:41 +08:00
y-schneiderandfisker 9102b73d8c Add parentheses for decorator expressions (#16458)
Co-authored-by: fisker <lionkay@gmail.com>
2024-07-13 21:15:40 +09: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
Christopher Dignamandfisker Cheung 988b43b72d Add parens for nullish coalescing in tenary (#16391)
* add parens for nullish coalescing

fix #4873

* add function

* Update tests/format/js/nullish-coalescing/nullish_coalesing_operator.js

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

* update snapshot

* add changelog entry

* fix typo

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-06-18 01:47:28 +01:00
renovate[bot]andfisker c3d0b7f419 chore(deps): update typescript-eslint to v7.13.0 (#16376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-06-11 11:30:23 +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
renovate[bot]andfisker d8d4732e52 chore(deps): update dependency meriyah to v4.4.4 (#16357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-06-06 14:46:46 +08:00
fisker CheungandAlexander Kachkaev efc3d053ac Avoid line breaks in import attributes (#16349)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2024-06-05 17:01:58 +08:00
fisker Cheung ddce4fb95c Move import attribute unquote test to a separate directory (#16350) 2024-06-04 18:18:12 +08:00
fisker Cheung b94811f988 Fix stripTrailingHardline (#16347) 2024-06-04 17:33:09 +08:00
fisker Cheung 590644170e Preserve explicit language in front matter (#16348) 2024-06-04 17:32:50 +08:00
fisker Cheung b26f56bd31 Update eslint-plugin-unicorn to v53 (#16275) 2024-06-04 09:39:19 +08:00
fisker CheungandSosuke Suzuki 8a88cdce6d Respect trailingComma in angular templates (#15926)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2024-05-29 00:41:49 +09:00
Martijn Atema 41f1dffed0 Add newline between markdown footnote definitions (#16063) 2024-05-25 09:15:39 +08:00
George Zaharievandfisker Cheung fb9f2c1778 Flow: add support for 'implies' type guard variant (#16272)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-05-11 09:03:55 +08:00
George Zahariev 5a51577428 Flow: add support for inexact tuple types (#16271) 2024-05-11 09:03:13 +08:00
fisker Cheung 26f1cd924e Fix dynamic import when the module source is a template literal (#16267) 2024-05-11 09:02:24 +08:00
fisker Cheung 55181669c5 Always enable recordAndTuple (#16264) 2024-05-11 09:01:35 +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
Klaus Hott Vidalandfisker 16449ce914 renaming jsfmt.spec.js to format.test.js (#16244)
Co-authored-by: fisker <lionkay@gmail.com>
2024-05-06 10:25:10 +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
renovate[bot]andfisker be0f56c735 chore(deps): update babel (#16130)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-04-04 21:27:38 +08: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 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 c66b06d29d chore(deps): update dependency flow-parser to v0.229.0 (#16092)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-02-18 23:20:44 +08:00
fisker Cheung c4af355521 Fix isStringKeySafeToUnquote (#16058) 2024-02-18 17:59:06 +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
Seiya d631cc9907 Add tests of edge cases around liquid (#16078) 2024-02-16 22:22:27 +08:00
Sam Zhou f4b3b7b1e2 feat: declare namespace printing support for Flow (#16066) 2024-02-11 22:28:50 +09: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
fisker Cheung d467987b4a Refactor ModuleExpression print (#16028) 2024-02-04 14:39:25 +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
Seiya b267831086 Add test cases about code embedding in markdown that relates to #15909 (#15985) 2024-01-26 20:11:21 +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 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +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
renovate[bot]andfisker b4ed91bffb chore(deps): update typescript-eslint to v6.18.1 (#15881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-01-15 14:42:44 +08:00