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] and fisker
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 Waiblinger and fisker Cheung
48c9bc4aea
Yield expression parens ( #16194 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-04-04 16:39:31 +09:00
Seiya and fisker
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
Travis Chapman and fisker 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
765fd0823e
Exclude optional call from isTestCall ( #16084 )
...
Ignore optional call from `isTestCall`
2024-03-09 20:53:23 +09:00
三咲智子 Kevin Deng and Sosuke 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] and fisker
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-Veturi and fisker
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
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
SUZUKI Sosuke and fisker
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] and fisker
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] and fisker
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
SUZUKI Sosuke and fisker 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
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
fisker Cheung
91a2e2513e
Fix schema ( #15962 )
2024-01-22 00:02:31 +08: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
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
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] and fisker
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
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
SUZUKI Sosuke
06c7e52da6
Avoid adding colon for track in 3rd expression of for blocks ( #15887 )
2024-01-08 15:20:06 +09:00
auvred
f31f84a687
Fix getFileInfo and getSupportInfo type definitions ( #15854 )
2024-01-07 22:53:18 +09:00
agajjar and fisker Cheung
5cae451c14
Improve GraphQL union types formatting ( #15870 )
...
* Fix:14234 added fix for formating graphql union type
* Fix:14234 clean up code and push the fix
* Fix:14234 added test cases
* Fix:14234 added changelog entry
* Fix:14234 cleanup changelog entry
* Fix:14234 cleanup changelog
* Update changelog_unreleased/graphql/15870.md
* Update changelog_unreleased/graphql/15870.md
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2024-01-07 22:49:39 +09:00
fisker Cheung
5b215c3d26
Fix comment print in if ( #15826 )
2024-01-03 11:20:17 +08:00
fisker Cheung
ff9c0839ac
Fix inconsistencies for ChainElements ( #15806 )
2024-01-03 11:11:32 +08:00
fisker Cheung
84c169ecc2
Fix prettier-ignored angular control flow ( #15827 )
2024-01-02 13:48:34 +08:00
fisker Cheung
1dc924f2f2
Add jsonc parser ( #15831 )
2024-01-02 10:59:34 +08:00
Seiya and fisker Cheung
82db5fcd0d
Somewhat improve conditional type alias ( #15811 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-28 23:46:34 +09:00
fisker Cheung
b9d0c993b9
Use Array#findLast() ( #15805 )
2023-12-28 23:44:13 +09:00
Mark Amery
2c3e42ba9a
Re-enable tests/dts/unit/cases/parsers.ts - take 2 ( #15789 )
...
Re-enable tests/dts/unit/cases/parsers.ts
2023-12-28 23:42:57 +09:00
fisker Cheung
bc0be70cf9
Improve loadEditorconfig ( #15821 )
2023-12-18 10:44:29 +08:00
Alexander Kachkaev
1ea2fd059a
Add eslint-plugin-simple-import-sort ( #15817 )
2023-12-18 03:34:12 +08:00
Kevin Gibbons
cb6fea81fb
Avoid introducing linebreaks in template interpolations ( #15209 )
2023-12-17 18:10:20 +08:00
SUZUKI Sosuke and fisker
153ffd5104
Support formatting for Angular ICU expression ( #15777 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-12-14 13:01:54 +09:00
Mark Amery
23b3ca2f52
Fix formatDiagnostic in tests/dts/unit/run.js ( #15790 )
2023-12-13 22:55:39 +02:00
Max Gurela and fisker
2c689f3e30
fix(printer-glimmer): preserve path literal segments ( #15605 )
...
* fix(glimmer): preserve path literal segments
This change fixes scenarios where an input handlebars file containing literal segments would be
reformatted to unwrap the literal segments, causing syntax errors in the resulting output. An
example of this is below:
```
<!-- wrong: input.funky<api!response -->
{{input.[funky<api!response]}}
<!-- wrong: input.this one has spaces -->
{{input.[this one has spaces]}}
```
This also handles a scenario where the input contained deprecated '/' delimited paths, ensuring
that those paths are not wrapped with brackets. This exists to prevent breaking an existing test
`sub-expressions.hbs`. Handling it this way does lead to some minor ambiguity since glimmer does
not support these paths, but the ambiguity is probably better than breaking them entirely.
fixes #14207 , preventing removal of brackets where necessary
---------
Co-authored-by: fisker <lionkay@gmail.com >
2023-12-13 16:18:24 +08:00