Ika
cdac9552ef
fix(vue,ng): do not normalize tag names ( #5526 )
2018-11-23 13:12:43 +08:00
Ika
b2eadd234b
fix(vue): preserve custom block ( #5458 )
2018-11-23 12:33:48 +08:00
Ika
6ee2f464ac
feat(javascript): enable logical assignment ( #5489 )
2018-11-18 16:38:35 +08:00
Ika
043a937de6
fix(markdown): do not trim content in inline-math ( #5485 )
2018-11-16 00:17:20 +08:00
Ika
668e049a5e
feat(html): support ie conditional start/end comment ( #5470 )
2018-11-15 12:35:28 +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
c00dcb97b0
fix(html): preserve content for element in `<pre>` correctly ( #5473 )
2018-11-15 10:34:27 +08:00
Huáng Jùnliàng
d86f39cb83
fix(markdown): add more category to CJK regex ( #5480 )
...
The following characters should be treated as CJK character
```
3099..309A ; Hira Kana # Mn [2] COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK..COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
309B..309C ; Hira Kana # Sk [2] KATAKANA-HIRAGANA VOICED SOUND MARK..KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
```
Here is the [playground link](https://deploy-preview-5402--prettier.netlify.com/playground/#N4Igxg9gdgLgprEAuEhqhkFkMhahnYeoZ2EaGdQZoZ1AzBkEyGVczcnco8gHSmcGkGQEwZTB7BkHuGQGQjAdgw9AgAyAHhmGBHhmGAnhkDWDIEH7QJ0OgJIZAG3KB1BlIACANoA3ALpbAz+nLAFhGA-50CaDIGiGQMoMgCwZAEP89A2Qxj3E99NeBIf8BBDHyA8QyAMQyA+gyAMgzCgABygDRBgCFuslyAVgyAkQzJrIDGDGGAQAzMzCAANCAQAA4wAJbQAM7IoACGAE6NEADuAApNCLUo9XoQFQAmRSAARo31YADWcDAAyqWTFVAA5sgwjQCucMUAFjAAtgA2AOq7FfDVi2Bwc90XFXoXAJ7I4NW1xcvVcI0w7RMVgd6sgAGb1I4-YoAK2qAA8AEITaazOb1A5wAAyyzgYIhUJAsLhc2WKyOcAAipsIPA8ZCdiBFo0fo03sDGlNBm0oCNSi0ficJqU3ny4Cy9Ljio04ABHTYVaUA+pAkFIcH04o-A4VdZbBnVUnkqk03Fq-EMmD1UYnIYwXbIABMxQ29QqR1JAGEIAdgW8oNBJSBNj8ACpWnrqgl85YwG2DO3IADsAAYAL6poA ) to show that current `prettier` adds redundant whitespaces around the characters.
The testcase text are copied from [半濁点 - Wikipedia](https://ja.wikipedia.org/wiki/%E5%8D%8A%E6%BF%81%E7%82%B9 ) and [ヴ - Wikipedia](https://ja.wikipedia.org/wiki/%E3%83%B4 ) respectively.
2018-11-15 00:10:50 +08:00
Ika
5c479cc55f
fix(typescript): do not add invalid semi for construct in interface with prettier-ignore ( #5469 )
2018-11-14 21:35:37 +08:00
Danny McCormick
18b03a31cc
Fix tests for Windows and add Azure Pipelines for cross platform CI ( #5410 )
...
* Add azure pipelines
* Add gitattributes
* Updating tests to work on Windows or Unix
* Lint
* Cleaning up
* Fixing names
* Clean up naming
* try to consolidate images
* Clean up
* Add back txt to gitattributes
2018-11-14 07:55:50 -05:00
Ika
57b057cfa2
fix(typescript): inline method decorators should stay inlined ( #5444 )
2018-11-14 10:13:35 +08:00
Ika
7e72889ac1
fix(javascript): fix locEnd for VariableDeclaration caused by --no-semi ( #5434 )
2018-11-11 00:26:11 +08:00
Ika
1ce76290c0
fix(vue): do not add invalid semicolon for event attr ( #5418 )
2018-11-11 00:25:11 +08:00
Ika
6cedf7d5d9
fix(flow,ts): consistent interface and remove unnecessary indent for extends ( #5432 )
2018-11-11 00:15:18 +08:00
Ika
e0f74cb94d
fix(javascript): do not attach to block if it's not behind right func paren ( #5435 )
2018-11-11 00:10:19 +08:00
Ika
182a92eb28
fix(html): preserve incomplete ie conditional comment ( #5429 )
2018-11-10 16:44:44 +08:00
Ika
8b1260a770
fix(javascript): inline property decorator should stay inline (part 2) ( #5423 )
2018-11-10 16:44:33 +08:00
Ika
cc6899e5c5
fix(css-in-js): do not duplicate comments ( #5416 )
2018-11-10 16:43:59 +08:00
Ika
d4c248bb0b
test: update snapshots
2018-11-10 10:52:08 +08:00
Adrian
6dcc7ed575
fix(javascript): handle createSelector as function composition ( #5430 )
...
fixes #5285
2018-11-09 17:55:57 -07:00
Ika
6fafd0a48d
fix(angular): correctly print unary expression with `+` ( #5405 )
2018-11-10 01:01:18 +08:00
Ika
4e7fca5047
fix(markdown): identify CJK correctly ( #5402 )
2018-11-10 01:00:58 +08:00
Ika
1bce579f8d
fix(ng|vue): whitespaces between interpolation and text are sensitive ( #5396 )
2018-11-10 01:00:26 +08:00
Ika
de11f69889
fix(html): preserve unterminated ie conditional comments ( #5424 )
2018-11-09 23:26:59 +08:00
Ika
6f6b634948
fix(html): preserve content for `<template>` with unknown lang ( #5388 )
2018-11-09 19:19:03 +08:00
Ika
423ddf9abd
fix(angular): add missing parens for pipe in ternary ( #5397 )
2018-11-09 09:51:54 +08:00
Ika
9acb02997a
feat(html): treat capital element as custom element ( #5395 )
...
Custom element: keep it on its own line if both leading/trailing line breaks exist
2018-11-09 09:51:31 +08:00
Ika
0228863a92
feat(html): handle pre with interpolation ( #5400 )
2018-11-09 09:50:57 +08:00
Ika
32ea48d499
fix(scss): do not throw if node.source undefined ( #5394 )
2018-11-09 09:48:16 +08:00
Ika
469a831619
fix(mdx): treat jsx codeblock same as in markdown ( #5391 )
2018-11-09 09:47:05 +08:00
Ika
7f472d72ae
fix(angular): handle parens in ng expression correctly ( #5387 )
2018-11-09 00:06:16 +08:00
Ika
fd8ec95e0a
fix(javascript): do not apply test call formatting to arrow without body ( #5366 )
2018-11-08 14:00:42 +08:00
Ika
4b51907b87
fix(javascript): inline property decorator should stay inline ( #5364 )
...
Fixes the `@action` part in #5360
2018-11-07 17:21:03 +08:00
Ika
8cedb9d25e
fix(markdown): do not keep increasing backslashes for dollar sign ( #5358 )
2018-11-07 10:06:57 +08:00
Brian Ng
e882452c54
Bump @babel/parser ( #5356 )
...
Follows #5304 with flow inexact support in @babel/parser!
2018-11-07 08:42:11 +08:00
Ika
40ac85125a
fix(html-in-js): do not break empty content ( #5355 )
2018-11-07 08:32:26 +08:00
Ika
a4e8aaf7a1
fix(jsx): do not move trailing char to the next line as leading char ( #5354 )
2018-11-07 07:41:34 +08:00
Ika
6a54e21c12
fix(css-in-js): do not remove semicolon ( #5353 )
2018-11-07 00:19:42 +08:00
Alexander Kachkaev
b87fe4cf22
Add option to enforce certain line endings ( #5327 )
2018-11-06 22:47:13 +08:00
Ika
40f46740f6
fix(jsx): consistent quotes in JSX expression ( #5349 )
2018-11-06 15:38:50 +08:00
Ika
b6691ba615
fix(javascript): no regression for jsx in arrow function in jsx ( #5343 )
2018-11-06 15:38:30 +08:00
Ika
02f9802119
fix(javascript): no regression for ternary#test alignment ( #5333 )
2018-11-05 17:07:57 +08:00
Stefan Mirea
e17512adcd
Add an option to print single quotes in JSX ( #4798 )
...
* feat(option-singleQuote-jsx): Added jsSingleQuote
* feat(option-singleQuote-jsx): Refactored to use a simple jsxSingleQuote flag
* feat(option-singleQuote-jsx): Fixed borked rebase
* feat(option-singleQuote-jsx): Updated snapshots
* feat(option-singleQuote-jsx): Resolved pending comments
* feat(option-singleQuote-jsx): Removed assert
* Fixed merge conflicts
* Updated snapshots after merge conflicts
2018-11-04 16:36:00 -05:00
Ika
5e8a4a115a
feat: support HTML/Vue/Angular ( #5259 )
2018-11-04 23:03:07 +08:00
Simon Lydell
275b0543c8
Never put spaces to the right of stars in indentable block comments ( #5330 )
...
Fixes #5323 . Previously we added space after `/*` _on the first line
only,_ but the intent is to only fix the indentation of comments, not
changing their "contents". Besides, this was inconsistent with the
handling of every following line. Finally, it broke `/*!` comments which
some minifiers look for to know which (license) comments to keep.
People can use https://eslint.org/docs/rules/spaced-comment to enforce
when to start comments with spaces.
2018-11-03 20:53:24 +01:00
Onur Temizkan
f6d8be881c
fix(css-in-js) Keep newlines in CSS-in-JS Templates ( Fixes : #5147 ) ( #5240 )
...
* fix(css-in-js) Keep newlines in CSS-in-JS Templates (Fixes : #5147 )
* Add more tests
* Do not add semicolon when CSS prop is a template variable
* Fix deletion of original semicolon
* Prettify long line
2018-11-01 21:58:16 +02:00
Jaiden Gerig
0799280429
Fixed unstable comment between function declaration and block statement ( #5250 )
2018-11-01 21:55:33 +02:00
Jordan Brown
b861448dbf
Pretty print inexact ( #5304 )
2018-10-26 21:05:42 +03:00
Jordan Brown
5d47e02f64
Update flow parser to 0.84.0 ( #5303 )
2018-10-26 22:14:47 +08:00
Aquib Master
1234ceb1d6
Fix flow extends not breaking out into new lines ( #5244 )
2018-10-25 10:49:53 -04:00