Mike Grip
4c464133ac
feat: adding plugin ability for isBlockComment ( #4347 )
...
* adding plugin ability for isBlockComment
* refactor to remove private util def
* remove old fn def
2018-04-19 13:31:08 -07: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
9c15f9ed9e
Remove workaround in rollup config for flow parser
2018-04-17 09:50:27 -05:00
Lipis
00b7aed75e
Add missing links in CHANGELOG ( #4330 )
2018-04-17 12:25:25 +02:00
Ekaterina Prigara
a74b72e098
#4320 : add paths for the global installation to the WebStorm docs ( #4322 )
2018-04-17 11:58:21 +02:00
Stephen Scott
ad318f6f36
1.12.1
2018-04-16 20:45:29 -06: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
Ika
1f84880fb1
refactor: remove duplicate mapDoc ( #4310 )
2018-04-15 00:07:03 +08:00
Ika
5d7b14856b
fix(schema): support array type ( #4312 )
...
* test: add test
* fix(schema): support array type
* fix: convince CI
* refactor: another way to convince CI
2018-04-15 00:06:43 +08:00
Evilebot Tnawi
7c0dee617b
refactor: `parseNestedCSS` function ( #4208 )
2018-04-13 22:12:59 +03:00
Ika
8e8a8d50cf
refactor(doc-utils): move `rawText` to printer-estree ( #4309 )
2018-04-14 00:05:00 +08:00
Ika
c814a9fa4d
fix(markdown): null check for code.lang ( #4307 )
2018-04-13 17:50:33 +08:00
Evilebot Tnawi
47cb5ad298
fix: correct prettier placeholder regex ( #4302 )
2018-04-12 18:25:25 +03:00
Suchipi Izumi
bdc5e0073d
Bump own prettier dependency to 1.12.0
2018-04-11 22:39:13 -06:00
Suchipi Izumi
6ae20cbdb8
1.12.0
2018-04-11 22:31:54 -06:00
Lucas Duailibe
99300d9be7
Use webpack to bundle the playground ( #4299 )
2018-04-11 14:27:31 -03:00
Lucas Duailibe
a3be9f5505
fix lint
2018-04-11 14:26:48 -03:00
Lucas Duailibe
4edfb67f55
Include webpack to bundle the playground
2018-04-11 14:16:00 -03:00
Lucas Duailibe
46c8a4cd9d
Move sw-toolbox to `website` dependencies ( #4297 )
2018-04-11 11:38:48 -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
Christian Zosel
79d480eb27
Blog post announcing first alpha release of PHP plugin ( #4289 )
2018-04-10 15:04:56 +03: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
Ika
01e8e2bb8a
refactor(markdown): use built-in ignore ( #4274 )
2018-04-07 00:19:26 +08:00
Lucas Duailibe
18aaee594f
Break object destructuring with nested destructuring ( #4267 )
2018-04-06 11:57:37 -03:00
Ika
7029346887
fix(playground): correct rangeStart/rangeEnd value ( #4273 )
2018-04-06 22:06:33 +08:00
Lucas Duailibe
2e73164b81
Fix embedded GraphQL in JS with backticks ( #4265 )
2018-04-05 17:52:09 -03:00
Lucas Duailibe
f35d1c21d7
Handle comments before `else` ( #4264 )
2018-04-05 17:51:14 -03:00
Lucas Duailibe
85d1e8d1ee
wording of the comment
2018-04-05 17:24:42 -03:00
Lucas Duailibe
fa089f5bb6
If consequent is a block statement, treat as trailing comment
2018-04-05 17:22:10 -03:00
Leonard Kinday
a199d9e405
Update CONTRIBUTING.md ( #4263 )
...
- Fix grammar mistake
- Link to Jest Snapshot Testing guide directly
2018-04-05 14:03:56 -06: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
James Henry
74ad0014aa
Playground: Add support for rangeStart and rangeEnd ( #4216 )
...
This allows users to more easily reproduce and report issues such as:
- https://github.com/prettier/prettier/issues/3789
- https://github.com/prettier/prettier/issues/4206
...etc...
2018-04-04 15:54:05 -04:00
Ika
93caa7642e
chore: add a script to generate schema ( #4248 )
...
* chore: add a script to generate schema
* typo fix
* refactor
2018-04-05 00:59:50 +08: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
Lucas Duailibe
c2ee047a5d
Update ISSUE_TEMPLATE.md ( #4250 )
2018-04-03 17:55:34 -03:00
Lucas Duailibe
b72a905727
fix typo
2018-04-03 17:54:43 -03:00
Orta
ce2c08b368
Update ISSUE_TEMPLATE.md
2018-04-03 14:30:10 -04:00