Jed Fox
63a2ded4c9
Never print a semicolon after `export default interface Foo {}` ( #4128 )
...
* Never print a semicolon after `export default interface Foo {}`
* Add test
2018-04-11 06:38:02 -04:00
Christopher Chedeau
7819a8f010
[flow] Upgrade flow to 0.69 and enable ?. support ( #4296 )
...
Flow now support ?. so this PR enables it in prettier
2018-04-10 18:03:34 -07:00
Lucas Duailibe
57bc700602
Stop marking all comments in named exports as leading comments ( #4292 )
2018-04-10 17:05:49 -03:00
Aakansha Doshi
6794a14554
Inline Angular async tests and beforeEach, etc. ( #4241 )
...
* fix #3791 and refactor isTestCall
* typo
* remove default value
* add safe check if parent exists
* add spec
* better comment
2018-04-11 00:06:42 +08:00
Ika
c052d9c086
test(markdown): update snapshot ( #4283 )
2018-04-09 08:20:29 +08:00
Nate Pendleton
28e4b07b17
fix(issue-3982): Glimmer printer now properly handles else-if blocks without else block … ( #4256 )
...
* fix(glimmer): Now properly handles else-if blocks without else block and block statements as root of else.
* run prettier on printer-glimmer.js
2018-04-08 11:36:37 -06:00
Ika
0c1d62079e
feat(markdown): support hasPragma/insertPragma ( #4275 )
...
* feat(markdown): support hasPragma/insertPragma
* test: add require-pragma tests
* feat: support pragma with front matter
* feat: support pragma in multiline comment
2018-04-09 00:10:24 +08:00
Lucas Duailibe
f3626611a3
Handle ContinueStatement and BreakStatement comments ( #4279 )
2018-04-07 13:38:37 -03:00
Ika
4bc80d8c64
fix(markdown): remove unnecessary empty line in front matter ( #4280 )
...
* test: add tests
* fix(markdown): remove unnecessary empty line in front matter
2018-04-08 00:05:27 +08:00
Lucas Duailibe
a92838facf
Prevent formatting GraphQL embedded in JS if it contains invalid escape sequences ( #4278 )
2018-04-07 12:03:56 -03:00
Lucas Duailibe
18aaee594f
Break object destructuring with nested destructuring ( #4267 )
2018-04-06 11:57:37 -03:00
Lucas Duailibe
2e73164b81
Fix embedded GraphQL in JS with backticks ( #4265 )
2018-04-05 17:52:09 -03:00
Lucas Duailibe
fa089f5bb6
If consequent is a block statement, treat as trailing comment
2018-04-05 17:22:10 -03:00
Lucas Duailibe
88489a9afe
Handle comments before `else`
2018-04-05 16:06:18 -03:00
Lucas Duailibe
e17bb5e947
Break nested ternaries ( #4120 )
2018-04-04 18:50:15 -06:00
Alexander Ryzhikov
6d7bc4402f
fix: don't lowercase custom selectors variable name #4254 ( #4255 )
...
* fix: don't lowercase custom selectors variable name #4254
* proper fix for camelCased custom selector
* Move customs-selectors case snapshots to correct place
2018-04-04 15:19:51 +03:00
Evilebot Tnawi
c9bb96cd52
fix: don't break value property with inlined URL ( #4236 )
2018-04-02 14:16:39 +03:00
Evilebot Tnawi
f2f2390114
fix: inline comments in lists and maps ( #4205 )
2018-03-31 17:18:23 +03:00
Evilebot Tnawi
30bcd110e4
fix: mangles template literal when you use `prettier-ignore` ( #4220 )
2018-03-30 21:40:14 +03:00
Rui Araújo
9da8752585
Allow new interface style for GraphQL. ( #4012 )
...
* Allow new interface style for GraphQL.
This is a breaking change since it will upgrade the old style to the new one.
Closes #3600 .
* Allow old interface style.
When in present of mixed style, it updates to the new one.
2018-03-27 00:52:57 -06:00
Ika
1b09fde361
feat(markdown): support top-level `prettier-ignore-start/end` ( #4202 )
...
* test: add tests
* feat(markdown): support top-level `prettier-ignore-start/end`
* docs(ignore): add range ignore
2018-03-27 00:03:28 +08:00
Jeff Lau
24f45d1b50
Require parenthesis around "TSAsExpression" inside an "UpdateExpression" ( #4183 )
2018-03-21 11:38:10 -03:00
Brian Ng
4553b88bd4
Merge pull request #4156 from Cryrivers/master
...
feat(typescript): support TSMinusToken and TSPlusToken
2018-03-21 09:06:06 -05:00
Evilebot Tnawi
190d34fa46
tests: comments with `CRLF` ( #4145 )
2018-03-21 12:04:57 +03:00
Evilebot Tnawi
31530259a1
feat: indent in discriminant switch ( #4165 )
2018-03-19 23:50:24 +11:00
Wang Zhongliang
5eea8aa2f5
feat(typescript): support TSPlusToken
2018-03-16 14:08:25 +08:00
Wang Zhongliang
67277f7477
feat(typescript): support TSMinusToken
2018-03-16 10:46:12 +08:00
Ika
0c09e150ba
feat(markdown): support fenced codeblock lang followed by attributes ( #4153 )
...
* test: add tests
* feat(markdown): support fenced codeblock lang followed by attributes
ref: https://shd101wyy.github.io/markdown-preview-enhanced/#/code-chunk
* refactor: set limit
2018-03-16 00:25:39 +08:00
Evilebot Tnawi
5537140296
fix: don't lowercase variable in css modules ( #4152 )
2018-03-15 18:16:28 +03:00
Evilebot Tnawi
e2373206bc
fix(html): support comment on top ( #4141 )
2018-03-13 19:47:48 +03:00
Evilebot Tnawi
8686653433
tests(html): aurelia non standard attributes ( #4142 )
2018-03-13 19:03:44 +03:00
Lucas Duailibe
13103101eb
Move pragma detection/insertion to plugins ( #3685 )
...
New pragma infrastructure, only JS and JSON has detection/insertion implemented
2018-03-08 13:50:33 -03:00
Evilebot Tnawi
94ec29dac7
fix: handle `unicode-range` ( #4117 )
2018-03-07 21:15:06 +03:00
Ika
836fd1ddcf
fix(markdown): correct html indentation ( #4115 )
...
* test: add test case
* fix(markdown): correct html indentation
2018-03-08 00:06:22 +08:00
Lucas Duailibe
550904d588
Fix self-closing style tags in vue
2018-03-06 09:38:15 -03:00
Lucas Duailibe
41098a06b5
Prevent "over-indenting" class properties values ( #4085 )
2018-03-02 11:28:27 -03:00
Anthony Sottile
a02094961a
pre-commit.com is now served on https ( #4088 )
2018-03-02 07:26:36 -05:00
Evilebot Tnawi
19d7d881a7
chore: update `postcss-scss` to latest version ( #4084 )
2018-03-01 21:00:51 +03:00
Ika
2b283908cf
fix(markdown): print literalline for newline instead of hardline ( #4083 )
...
* test: add tests
* fix(markdown): print literalline for newline instead of hardline
* test: add tests
2018-03-01 14:42:20 +02:00
Evilebot Tnawi
4ddf1a6e84
fix: don't lowercase nesting selector ( #4048 )
2018-02-26 18:13:02 -07:00
Eric Anderson
efd5bde713
Fix(typescript) non-null identifier same line in chain ( #4052 )
2018-02-26 15:12:03 -03:00
Evilebot Tnawi
65b988a989
feat: ignore non standard IE filter values ( #4028 )
2018-02-26 14:58:38 +03:00
Ika
b6c27893cc
fix(markdown): list prefix alignment: count spaces from correct place ( #4041 )
...
* test: add tests
* fix(markdown): list prefix alignment: count spaces from correct place
* docs: codeblock -> code block
2018-02-26 08:53:09 +08:00
Ika
ca81bef73e
fix(markdown): list prefix: no unnecessary trailing spaces ( #4042 )
...
* fix(markdown): list prefix: no unnecessary trailing spaces
* refactor
2018-02-26 08:52:49 +08:00
Ika
c1107a86dd
feat(markdown): respect tabWidth for list items ( #3990 )
...
* feat(markdown): respect tabWidth for list items
* test: ensure no regression for #3459
2018-02-24 19:13:02 +11:00
Zhongliang Wang
d18da53e87
feat(typescript): Support conditional types ( #4007 )
...
* feat(typescript): support for conditonal types
* refactor(js): reuse conditional expression logic
* chore(typescript): update snapshot for typescript conditional type test suite
* chore(js): make code support Node 4
* chore(js): rename utility functions
* chore(js): add comments for formatTernaryOperator
* fix(ts): support infer keyword
* chore(js): new line
* chore(js): improve readablity a little bit
2018-02-23 12:34:23 -07:00
Evilebot Tnawi
7b457fd3b8
refactor: at rules parse ( #4023 )
2018-02-22 12:49:03 +03:00
Lucas Azzola
b7f0794ad5
Handle definite variable declarations ( #4025 )
...
* Handle definite variable declarations
* printDefinite -> isDefinite
2018-02-22 13:03:35 +11:00
Evilebot Tnawi
e1491d0f95
fix(css): comments in at rules ( #3920 )
2018-02-21 21:36:09 +03:00
Ika
8f6a32853c
feat(typescript): support definite assignment (`!:`) ( #4020 )
2018-02-22 01:40:57 +08:00