fisker Cheung
69ed5dad2a
Fix code frames for glimmer and hermes parser ( #19163 )
2026-05-19 02:58:09 +08:00
fisker Cheung
5017d66ea7
Test: Update printWidth indicator ( #10293 )
2026-01-31 03:45:41 +08:00
fisker Cheung and autofix-ci[bot]
ed5bb0bf62
Refactor tests ( #18743 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-25 10:30:19 +08:00
E and fisker Cheung
e51ff9ad41
Add Front Matter support to Handlebars ( #17781 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2025-10-29 23:56:19 +08:00
912342210d
Fix extra blank lines in Handlebars style tags ( #18065 )
...
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-27 19:59:40 +08:00
fisker Cheung
d452be5cb0
Don't force handlebars elements to break in htmlWhitespaceSensitivity: "ignore" mode ( #18133 )
2025-10-27 08:46:30 +08:00
fcf5b82cdf
Preserve Handlebars else-if syntax for custom helpers ( #17856 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-09-09 17:11:10 +08:00
renovate[bot] and fisker
a6bbdad8ca
chore(deps): update dependency jest to v30.1.1 ( #17819 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2025-08-30 15:36:22 +08:00
Matic Jurglič and fisker
ed94e9415b
Handle <style> and <pre> tags in Handlebars/Glimmer ( #15087 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2024-12-16 16:28:32 +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] and fisker
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 Vidal and fisker
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
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
fisker Cheung
6eda34db44
Test: Rename run_spec to runFormatTest ( #15943 )
2024-01-19 17:20:24 +08: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
Sosuke Suzuki
fa48415617
Bump Prettier dependency to 3.0.0
2023-07-05 21:50:05 +09:00
fisker Cheung
549a59dd7f
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/language-handlebars/printer-glimmer.js
# src/language-handlebars/utils.js
# tests/format/handlebars/element-node/jsfmt.spec.js
# tests/format/misc/errors/handlebars/jsfmt.spec.js
# yarn.lock
2023-01-29 11:02:56 +08:00
James C. Davis and fisker Cheung
37fb53acf3
[handlebars] group params in opening block statements ( #14067 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2023-01-28 09:23:40 +08:00
fisker Cheung
310a5b1ba5
Handlebars: Improve HTML void element check ( #14110 )
2023-01-22 21:50:42 +08:00
fisker Cheung
0cd7e10447
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# src/language-js/print/literal.js
# src/language-js/print/misc.js
# src/language-js/printer-estree.js
# tests/format/markdown/auto-link/jsfmt.spec.js
# yarn.lock
2023-01-10 09:38:45 +08:00
Cyrille David
b77d912c0c
ember / glimmer: Preserve self-closing tags ( #13691 )
2023-01-04 18:51:39 +08:00
Cyrille David
cf36209a27
Handlebars: Add tests for {{! prettier-ignore}} ( #13693 )
2023-01-04 18:49:24 +08:00
fisker Cheung
daeb90f1ca
Merge branch 'main' into next
...
# Conflicts:
# package.json
# src/language-css/printer-postcss.js
# src/language-handlebars/printer-glimmer.js
# src/language-markdown/clean.js
# src/language-markdown/printer-markdown.js
# yarn.lock
2022-12-15 19:16:59 +08:00
James C. Davis
40d0f27055
[handlebars] allow custom "else if"-like with block params ( #13930 )
2022-12-15 14:50:51 +08:00
fisker Cheung
f32daf742f
Merge branch 'main' into next
2022-09-28 16:00:06 +08:00
James C. Davis and fisker Cheung
38611cb16e
[handlebars] correctly format custom "else if" blocks ( #13507 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-09-26 11:04:50 +08:00
fisker Cheung
ec2b75dce9
Merge branch 'main' into next
...
# Conflicts:
# .github/workflows/validate-vendor-versions.yml
# package.json
# scripts/build/bundler.mjs
2022-02-28 21:06:23 +08:00
Matt
c865b198fd
Correctly identify which backslashes are removed by glimmer ( #12302 )
...
* Correctly identify which backslashes are removed by glimmer
* Add tests for #12298
* Don't use ?? syntax
* Add a changelog entry for #12302
* Add a test for #11401
* Move backslash tests to the escape directory
* Backslash test shouldn't have a self-closing p
2022-02-23 20:58:21 +09:00
fisker Cheung and Sosuke Suzuki
6bd81c23b6
Migrate format test to ES Module ( #11902 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2022-01-04 17:00:25 +08:00
Lucas Duailibe
d3dfb74cab
[handlebars] Named blocks can't be self closing ( #11900 )
2021-12-01 22:26:00 -03:00
bmaehr
5d774dc667
Fix mustache quotes inside attribute ( #10419 ) ( #11524 )
...
* Fix mustache quotes inside attribute (#10419 )
* Add changelog (#10419 )
* Update changelog (#10419 )
* Updated tests
* Updated tests
* Opimize performance
* Don't format changlog
* Remove additional example
2021-09-28 06:02:59 +09:00
Cyrille David
3cd28ca80d
Preserve attributes order for element node ( #10958 )
...
* Preserve attributes order for element node
* Add CHANGELOG
* Add ...arguments in the test
* Apply fisker suggestions
* Simplify further
2021-06-04 13:54:02 +03:00
fisker Cheung
ece93681f1
Restructure test files ( #10415 )
2021-04-25 20:01:56 +08:00