Lucas Duailibe
4cedfee962
update
2018-04-10 22:31:03 -03: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
d474d5c550
Merge branch 'master' into new-playground
2018-04-10 21:49:46 -03: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
Evilebot Tnawi
d676188dbb
chore(deps): update `html-tag-names` package ( #4242 )
2018-04-02 16:25:29 +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
76cb653347
chore: update `postcss-scss` and `postcss-less` ( #4237 )
2018-04-02 12:50:48 +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
suchipi
7e1906d7c7
Update ISSUE_TEMPLATE.md ( #4214 )
...
* Update ISSUE_TEMPLATE.md
* Update ISSUE_TEMPLATE.md
* Wording
* Combine comment
2018-03-28 19:46:11 -06: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
Lipis
f23ce27856
More than 800/100k ( #4204 )
2018-03-26 07:12:07 -04:00
Alexander Kachkaev
fb428629fb
Add Elm plugin to website's home page ( #4163 )
...
* Add Elm plugin to website's home page
Supplements #4161
* Order plugins alphabetically
* Add link to elm-format
2018-03-26 13:26:01 +11:00
Lucas Azzola
e03e4d6d40
Move needsParens to a language-specific file ( #4201 )
2018-03-25 18:35:32 +11:00
Joseph Frazier
286601f5fa
Don't publish nested tarballs ( #4197 )
...
Fixes https://github.com/prettier/prettier/issues/4179
I tried the `.gitignore` idea, but it didn't work, presumably because we
publish from `dist/` instead of the repo root. See here for more details
on how/why this solution works:
https://docs.npmjs.com/files/package.json#files
2018-03-24 19:11:24 -04:00
Zac Anger
8fe88007db
Add Jane.com to users ( #4189 )
2018-03-21 16:08:23 -06:00
Christopher Chedeau
adf6d1849d
Remove outdated comment ( #4190 )
...
We now always return a conditional group.
2018-03-21 14:38:51 -07:00
Jeff Lau
24f45d1b50
Require parenthesis around "TSAsExpression" inside an "UpdateExpression" ( #4183 )
2018-03-21 11:38:10 -03:00
Ekaterina Prigara
5b8e0e6201
Updated docs on using Prettier in WebStorm ( #4178 )
...
* Updated WebStorm configuration
* Minor edits in WebStorm docs
* Removed trailing spaces
2018-03-21 07:25:41 -07: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
Mike Grip
d9ee183f5b
feat: enable plugin-specific comment functionality ( #4182 )
...
* feat: enable plugin-specific comment functionality
This change enables language plugins to provide their own "handleComment" function. To do so, we're exposing the addLeadingComment, addTrailingComment, and addDangling comment functions which attach comment nodes correctly in the ast which will get handled by prettier core when printing.
* moving js comment functionality to plugin
2018-03-20 18:39:28 -07:00
Lipis
feb41a5516
Richer markdown example in the playground ( #4176 )
...
* Richer markdown example in the playground
* Link is back
2018-03-19 16:32:06 +02:00
Evilebot Tnawi
31530259a1
feat: indent in discriminant switch ( #4165 )
2018-03-19 23:50:24 +11:00
Ika
23cd5d44f7
fix(playground): no undefined parsers ( #4159 )
2018-03-16 11:37:08 -03:00