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
Sosuke Suzuki
ee0d667fa2
Bump Prettier dependency to 3.2.0
2024-01-13 01:17:26 +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
renovate[bot] and fisker
6d784f318c
chore(deps): update dependency eslint-plugin-unicorn to v50 ( #15855 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2024-01-03 10:49:57 +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
4c3cf0c1d4
Refactor config search ( #15822 )
2023-12-18 14:50:36 +08:00
fisker Cheung
bc0be70cf9
Improve loadEditorconfig ( #15821 )
2023-12-18 10:44:29 +08:00
fisker Cheung
21895286a7
Simplify loadPlugin ( #15820 )
2023-12-18 09:39:14 +08:00
fisker Cheung
8c7ea9c7ed
Reduce size of bundled js-yaml ( #15819 )
2023-12-18 08:19:26 +08:00
fisker Cheung
0ff9efd015
Reduce size of bundled json5 ( #15818 )
2023-12-18 07:40:07 +08:00
Klaus Hott Vidal
02c80dce7f
group not needed if we know there's a hardline or a breakParent inside ( #15795 )
2023-12-18 03:38:25 +08:00
Alexander Kachkaev
1ea2fd059a
Add eslint-plugin-simple-import-sort ( #15817 )
2023-12-18 03:34:12 +08:00
fisker Cheung
6a6b699a42
Add isUnionType and isIntersectionType utilities ( #15814 )
2023-12-17 21:29:10 +08:00
fisker Cheung
176ff487b1
Improve shouldHugType ( #15813 )
2023-12-17 20:39:39 +08:00
Kevin Gibbons
cb6fea81fb
Avoid introducing linebreaks in template interpolations ( #15209 )
2023-12-17 18:10:20 +08:00
fisker Cheung
d541f0d699
Remove useless {stripTrailingHardline: true} ( #15809 )
2023-12-16 21:53:48 +08:00
fisker Cheung
65e72a2ba7
Simplify module attributes print ( #15812 )
2023-12-16 21:05:27 +08:00
renovate[bot] and fisker Cheung
aaef1bc31d
chore(deps): update dependency flow-parser to v0.224.0 ( #15804 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-15 07:53:56 +08:00
renovate[bot] and fisker Cheung
d761a9ab94
chore(deps): update babel to v7.23.6 ( #15801 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-15 07:12:20 +08:00
fisker
7ffc3cc676
Switch wcwidth to wcwidth.js
2023-12-15 06:08:05 +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
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
fisker Cheung
44949eb5dc
Support absolute path in config file ( #15666 )
2023-12-13 16:16:15 +08:00
fisker Cheung
ddf223a3ff
Fix formatting of ternary ( #15679 )
2023-12-13 16:14:44 +08:00
fisker Cheung
8227c0a69e
Fix formatting of prettier-ignored unclosed elements ( #15748 )
2023-12-13 16:13:26 +08:00
Seiya and fisker Cheung
224f70fb09
Stabilize member chain with empty line ( #15522 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-12-13 16:12:03 +08:00
fisker Cheung and SUZUKI Sosuke
c97480c9a9
Use attributes instead of deprecated assertions ( #15758 )
...
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-12-10 17:13:03 +09:00
0d1ffb3a91
Consistently use tabs in ternaries when useTabs is true ( #15662 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com >
2023-12-10 17:10:57 +09:00
Mark Amery
1e30f66f39
Remove claim, untrue since over 5 years ago, that cursorOffset is incompatible with rangeStart/rangeEnd ( #15750 )
2023-12-08 16:35:02 +02:00
Sander Maijers and fisker
8e816ade2e
Allow skipping symlink patterns, to avoid raising a fault ( #15533 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-12-08 01:54:18 +09:00
fisker Cheung
389225527c
Remove outdated code ( #15759 )
2023-12-05 18:18:56 +08:00
fisker Cheung
47ca2c1552
Keep empty import attributes and assertions ( #15757 )
2023-12-05 17:55:18 +08:00
fisker Cheung
7015f10d8e
Keep curly braces and from keyword in empty import statements ( #15756 )
2023-12-05 16:13:31 +08:00
fisker Cheung
4c3cfa7a81
Support TypeScript 5.3 ( #15718 )
2023-12-05 15:39:24 +08:00
fisker Cheung
5f0956bc30
Implement our own config explorer ( #15663 )
2023-12-05 15:00:43 +08:00
fisker Cheung
117c04fcc8
Simplify mockable ( #15729 )
2023-12-05 14:39:11 +08:00
SUZUKI Sosuke
0ba2d693ba
Fix unstable and ugly formatting for comments in destructuring patterns ( #15708 )
2023-11-24 00:56:14 +09:00
renovate[bot] and fisker Cheung
8ae13c13a8
chore(deps): update dependency url-or-path to v2.3.0 ( #15684 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-11-19 23:12:13 +08:00
fisker Cheung
1b21096744
Make findProjectRoot async ( #15672 )
2023-11-17 21:44:39 +08:00
fisker Cheung
e4a74c05f4
Fix argument passed to lilconfig.search() ( #15363 )
2023-11-16 01:05:57 +08:00