Commit Graph
8983 Commits
Author SHA1 Message Date
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] d09e26b3d7 chore(deps): update dependency esbuild to v0.19.9 (#15808)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 21:31:36 +08:00
fisker Cheung 03f05fa3b5 Upgrade to yarn 4 (#15548) 2023-12-15 21:09:05 +08:00
fisker Cheung 2ee0016ffc Build: Fix html report (#15807) 2023-12-15 19:28:42 +08:00
renovate[bot]andfisker 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] ad5eeaa7b7 chore(deps): update dependency @babel/parser to v7.23.6 (#15802)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 07:33:12 +08:00
renovate[bot] 4d4b2191d7 chore(deps): update dependency esbuild-visualizer to v0.5.0 (#15803)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 07:32:18 +08:00
renovate[bot]andfisker 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
renovate[bot]andfisker Cheung 130070214c chore(deps): update actions/upload-artifact and actions/download-artifact action to v4 (#15798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-12-15 06:58:23 +08:00
renovate[bot] 449eda6f5a chore(deps): update babel to v7.23.6 (#15800)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 06:54:30 +08:00
renovate[bot] 7799bfa7f6 chore(deps): update github/codeql-action action to v3 (#15799)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 06:52:59 +08:00
fisker 7ffc3cc676 Switch wcwidth to wcwidth.js 2023-12-15 06:08:05 +08:00
SUZUKI Sosukeandfisker 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 Gurelaandfisker 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
renovate[bot] 3728294246 chore(deps): update typescript-eslint to v6.14.0 (#15695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-13 16:14:03 +08:00
fisker Cheung 8227c0a69e Fix formatting of prettier-ignored unclosed elements (#15748) 2023-12-13 16:13:26 +08:00
Seiyaandfisker 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
Mark Amery be2fe89b43 Add a bunch more cursor position test cases (#15787) 2023-12-13 13:18:20 +08:00
e04f0b023b Update contributing.md to mention options philosophy (#15648)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2023-12-12 23:34:27 +09:00
renovate[bot] c1ebae2e83 chore(deps): update dependency typescript to v5.3.3 (#15701)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-10 18:51:11 +08:00
Sosuke Suzuki 711e7b5759 Fix yarn.lock 2023-12-10 17:38:15 +09:00
Sosuke Suzuki 1de9db5c88 Git blame ignore 3.1.1 2023-12-10 17:37:52 +09:00
Sosuke Suzuki 1178b4dff2 Bump Prettier dependency to 3.1.1 2023-12-10 17:37:52 +09:00
Sosuke Suzuki ea4c9aff19 Update dependents count 2023-12-10 17:37:31 +09:00
Sosuke Suzuki b86701dd1d Release 3.1.1 2023-12-10 17:33:43 +09:00
fisker CheungandSUZUKI 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
Klaus Hott Vidal 5f7aedc1cf fix example to fit the actual experimentalTernaries behaviour (#15747) 2023-12-08 16:35:35 +02: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
Georgii Dolzhykov 39e4e7bf40 Add cursorOffset to Playground (#15751) 2023-12-08 16:34:26 +02:00
Sander Maijersandfisker 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
Georgii Dolzhykov 2ca5d757b7 Fix expect call in dts test (#15766) 2023-12-06 00:10:45 +02:00
renovate[bot] 15c742844f chore(deps): update dependency flow-parser to v0.223.3 (#15760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 19:36:55 +08:00
renovate[bot] d3b3d4f5e3 chore(deps): update dependency hermes-parser to v0.18.0 (#15761)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 18:27:18 +08: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
renovate[bot] fc440b4b66 chore(deps): update dependency eslint-config-prettier to v9.1.0 (#15754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:24:03 +08:00
renovate[bot] c453fc925f chore(deps): update babel to v7.23.5 (#15755)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:23:18 +08:00
renovate[bot] 69f550ff7f chore(deps): update dependency @babel/parser to v7.23.5 (#15753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:06:56 +08:00
renovate[bot] 96aa09b8cf chore(deps): update dependency postcss to v8.4.32 (#15752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 11:06:18 +08:00
Klaus Hott VidalandGeorgii Dolzhykov 0d6db6e98b documenting the hardline within an ifBreak odd behaviour (#15746)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2023-12-05 10:47:43 +08:00