Ika
ff38aaff95
fix(javascript): correct escape for markdown in js ( #4381 )
...
* test: add tests
* fix(javascript): correct escape for markdown in js
* test: add trailing newline
2018-04-26 13:22:43 +03:00
Evilebot Tnawi
58a91cc570
feat: improve `@support` at-rule output ( #4372 )
2018-04-25 20:41:41 +03:00
Ika
289b98c125
feat(json): enforce StringLiteral-style property key ( #4371 )
...
* test: add tests
* feat(json): enforce StringLiteral-style property key
2018-04-26 00:00:07 +08:00
Ika
317f3a3c56
feat: split out JSON5 ( #4367 )
...
* feat: split out JSON5
* test: update snapshots
* test: update debug-check tests
* feat(playground): use JSON's code sample for JSON5
* fix: add missing trailing newline
2018-04-25 22:10:22 +08:00
Ika
6a17474e37
feat(typescript): support generic JSX element ( #4268 )
...
* feat(typescript): support generic JSX element
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:31 -05:00
Ika
643e2a83d6
feat(typescript): support TaggedTemplateExpression typeParameters ( #4353 )
...
* test: add tests
* feat(typescript): support TaggedTemplateExpression typeParameters
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:06 -05:00
Lucas Duailibe
50101e98c6
Fix pragma detection/insertion for JSON ( #4333 )
2018-04-24 10:10:16 -03:00
Adam Pearce
09ac476a32
Nicer line wrapping for d3 ( #4285 )
...
* d3 counts as a constructor
* adds test
* Tweak wording
* docs: fix linting
* updates test
* no $ special case
* renames function
* shorter function name
* removes trailing white space
2018-04-24 06:54:45 -04:00
Brian Ng
7cb6790ce0
Merge pull request #4326 from existentialism/flow70
...
Bump flow to 0.70
2018-04-18 17:04:14 -05:00
Aakansha Doshi
7f20ffc7f5
Allow trailing comma in scss list and maps ( #4317 )
...
* Allow trailing comma in scss list and maps
* fix #4076
* triple equalto
* newline
* linting
* review fixes
* print trailing comma only when options.tralingComma is not none
* Add nested maps and lists
* add isSCSS() check
* linting
* Add utils for isSCSS() in language-css
* lint
2018-04-18 17:40:01 -03:00
Brian Ng
7ab3e94fbb
Ensure mixins before implements
2018-04-16 21:28:56 -05:00
Brian Ng
e22ec0b9b9
Bump flow to 0.70
2018-04-16 20:53:07 -05:00
Christopher Chedeau
02a1db8c9f
[flow] Fix union indent inside of function param with a name ( #4325 )
...
Fixes #4323
See #4323 for all the context
2018-04-16 18:47:05 -07:00
Zach Gawlik
0a22f5ec15
Wrap awaits in unary expressions ( #4315 )
2018-04-14 15:27:18 -04:00
Evilebot Tnawi
7c0dee617b
refactor: `parseNestedCSS` function ( #4208 )
2018-04-13 22:12:59 +03:00
Evilebot Tnawi
47cb5ad298
fix: correct prettier placeholder regex ( #4302 )
2018-04-12 18:25:25 +03:00
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