Commit Graph
23 Commits
Author SHA1 Message Date
Georgii Dolzhykov 16c0a7a10f Rudimentary support for the most used directives of AngularJS 1.x (#6869)
* Rudimentary support for the most used directives of AngularJS 1.x

* add ng-class and ng-style

* add changelog entry in the new format

* Update pr-6869.md

* update snapshots
2020-02-18 00:38:23 +02:00
Georgii Dolzhykov 5dab172700 Merge remote-tracking branch 'remotes/upstream/master' into next 2020-02-14 14:08:20 +02:00
fisker Cheung 017d079ca8 Format value of HTML style attribute (#7556) 2020-02-14 14:21:11 +03:00
fisker CheungandGeorgii Dolzhykov b35074007b HTML: Fix inconsistent formatting of self-closing tags (#7395)
* Fix inconsistent self-closing tag in vue

* Update snap

* Add changelog

* More test

* reword changelog

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-02-10 13:36:25 +03:00
Sosuke Suzuki ac72cd3e94 Merge branch 'master' into next 2020-01-18 06:49:52 +09:00
Georgii Dolzhykov 3fd0d56a95 angular: fix i18n attr with @@ (#7371)
* angular: fix i18n attr with @@

* changelog
2020-01-16 15:57:33 +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
Zaven Muradyan 4e46f92b86 Add formatting for i18n attributes. (#6695)
* Add formatting for i18n attributes.

Previously, Prettier would largely ignore i18n attributes, not even
wrapping their content, which wasn't ideal since i18n descriptive text
can sometimes get long.

After this, Prettier will auto-wrap the contents of i18n attributes once
they exceed the line length.

Fixes #5875.
2019-10-25 22:10:43 +03:00
Zaven Muradyan 887f800651 fix(angular): don't add unnecessary parentheses to pipes (#5929) 2019-03-13 09:02:36 +08:00
Ika 3de36e3a2b fix(ng,vue): add parens to avoid unexpected }} in interpolations (#5657) 2018-12-30 23:03:42 +08:00
Ika d97fe0a1e0 feat(html): preserve surrounding linebreaks (#5596) 2018-12-11 12:43:53 +08:00
Ika 2247ce1aab feat(angular): support interpolation in attributes (#5573) 2018-11-30 09:28:54 +08:00
Ika a7528ebea4 fix(ng,vue): do not normalize attribute names (#5549) 2018-11-26 12:09:19 +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 66ada24961 feat(angular): do not print colon for ngIf (#5542) 2018-11-25 15:43:40 +08:00
Ika 7da4ed76ad fix(html): do not touch comments (#5525) 2018-11-23 21:25:58 +08:00
Ika cdac9552ef fix(vue,ng): do not normalize tag names (#5526) 2018-11-23 13:12:43 +08:00
Ika 4f63be05e8 fix(html): leading space for leading interpolation in textarea is sensitive (#5468) 2018-11-15 10:34:42 +08:00
Ika d4c248bb0b test: update snapshots 2018-11-10 10:52:08 +08:00
Ika 6fafd0a48d fix(angular): correctly print unary expression with + (#5405) 2018-11-10 01:01:18 +08:00
Ika 1bce579f8d fix(ng|vue): whitespaces between interpolation and text are sensitive (#5396) 2018-11-10 01:00:26 +08:00
Ika 7f472d72ae fix(angular): handle parens in ng expression correctly (#5387) 2018-11-09 00:06:16 +08:00
Ika 5e8a4a115a feat: support HTML/Vue/Angular (#5259) 2018-11-04 23:03:07 +08:00