fisker Cheung
be56c725c0
Show options in test title ( #7785 )
...
* Show options in test title
* Update snapshots
2020-04-18 16:09:07 +03:00
fisker Cheung and Georgii Dolzhykov
aa3141c24e
Wrap tests in describe ( #7934 )
...
* Run `format()` in test function
* Wrap `test`s in `describe`
* Update tests_config/run_spec.js
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-04-10 19:12:01 +08:00
Georgii Dolzhykov
605e57dd3e
fix .prettierignore (jsfmt.spec.js files were ignored)
2020-03-27 23:40:45 +02:00
fisker Cheung
017d079ca8
Format value of HTML style attribute ( #7556 )
2020-02-14 14:21:11 +03:00
Kagami Sascha Rosylight and Georgii Dolzhykov
1cd90c9fb8
Do not add hard linebreak for html template ( #7208 )
...
* Do not add hard linebreak for html template
* Collapse whitespaces to single space char
* restore line breaking
* use `line` and rename vars
* add test
* support htmlWhitespaceSensitivity
* indent if breakable
* add htmlWhitespaceSensitivity test
* indent only when multiple top levels
* add a changelog entry
* update snapshot
* replace match with test
* split tests into multiple files for better readability of snapshots
* fix an edge case with html-in-js-in-html
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-02-03 17:09:38 +02:00
Alexander Kachkaev
e00ce8c2c8
Change arrowParens to always by default for 2.0 ( #7430 )
2020-01-29 13:31:25 +02:00
fisker Cheung
791996df7b
Set trailingComma default value to es5 ( #6963 )
...
* Set `trailingComma` default value to `es5`
* Update `options` documentation
* Update tests
* style
* fix js code style
* change options order
* update tests_integration snap
* disable es5 for __ng_interpolation
* fix angular tests
* fix scss test
* fix `css_trailing_comma` snap
* fix css_scss snapshot
2019-11-18 11:39:12 +01:00
Georgii Dolzhykov
e4f0df5bed
fix: nested embeds (JS in HTML in JS) ( #6038 )
2019-05-27 14:42:13 -03:00
Ika
42f7b6025e
fix(javascript): remove unnecessary linebreaks from html templates ( #5771 )
2019-01-20 11:15:18 +08:00
Wei-Wei Wu
91c20f7fbe
Rename "babylon" with "babel" ( #5647 )
2018-12-27 21:05:19 +08:00
Ika
65a9d3b8cc
fix(flow,ts): format /* HTML */ templates ( #5658 )
2018-12-19 23:00:18 +08:00
Ika
28b938da97
feat(html): update angular-html-parser ( #5565 )
...
- support [`htm`](https://github.com/developit/htm ) (`<${Component}>content<//>`, `<div />`)
- preserve [bogus comments](https://www.w3.org/TR/html5/syntax.html#bogus-comment-state ) (`<! ... >`, `<? ... >`)
2018-11-29 11:03:22 +08:00
Ika
4af3dd4b07
test: improve snapshots ( #5521 )
...
- before
```
${input}${"~".repeat(printWidth)}
${output}
```
- after
```
===options===
${options}
${" ".repeat(printWidth)}| printWidth
====input====
${input}
===output====
${output}
=============
```
2018-11-25 16:21:14 +08:00
Ika
b6a04ab8ba
fix(html-in-js): do not add quotes for interpolation-only attributes ( #5544 )
2018-11-25 15:04:02 +08:00
Ika
40ac85125a
fix(html-in-js): do not break empty content ( #5355 )
2018-11-07 08:32:26 +08:00
Ika
5e8a4a115a
feat: support HTML/Vue/Angular ( #5259 )
2018-11-04 23:03:07 +08:00