Commit Graph

2223 Commits (f2f239011454b2042f29333378e39d6a0a75de70)

Author SHA1 Message Date
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
Alexander Kachkaev 328d91f030 Add elm plugin (#4161)
* Add a link to prettier-plugin-elm

* Order community plugins alphabetically, thus making it easier to find a particular language
2018-03-16 11:27:47 -03:00
Wang Zhongliang 419694485b fix: make ESLint happy 2018-03-16 14:47:51 +08: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 4c363a7a2f
Add docs on new pragma infrastructure (#4121) 2018-03-08 23:02:41 -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
Lucas Duailibe bb1c354453 Update yarn.lock 2018-03-08 10:44:30 -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 f6f6f2e2ea
Fix self-closing style tags in vue (#4108) 2018-03-06 13:06:09 -03:00
Lucas Duailibe 550904d588 Fix self-closing style tags in vue 2018-03-06 09:38:15 -03:00
Simon Lydell 8ab09cc753 Add playground examples for all languages (#4107)
* playground: Add GraphQL example

* playground: Add markdown example

* playground: Add Flow example

* playground: Add Less example

* playground: Add Vue example
2018-03-06 20:09:16 +11:00
Lipis 6fea2f4745
chore: Upgrade some dependencies (#4104) 2018-03-05 21:52:26 +02:00
Simon Lydell 9ad1f80221
Add more stuff to the Rationale page (#4101)
* Add no-semi rationale

* Add rationale for import statements

* Add rationale for JSX

* Add prettier-ignore comments
2018-03-05 17:43:22 +01:00
Wesley Abbey f224087cef Add Drizly to users (#4105) 2018-03-05 11:12:45 -03:00
Lipis 8e6b9dd5d9
New links for plugin URLs (#4099)
They were renamed
2018-03-05 01:57:59 +02:00
Warren Seine faee16a5b4 Fix typos in plugin documentation. (#4098) 2018-03-04 18:00:47 +02:00
Lipis 9103cd227e
More than 80,000 dependent repositories (#4096) 2018-03-03 17:45:16 +02:00
Anthony Sottile 2e59f178aa No longer need to clarify that `pre-commit` is "Python version" (#4089) 2018-03-02 10:14:20 -05: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
Lucas Duailibe 240f09794b
Fix printing ignored files with --debug-check (#4066) 2018-03-01 13:03:54 -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
suchipi 6d4ffa181f
Update CHANGELOG.md 2018-02-28 15:51:26 -07:00
Kai Cataldo 8265b0e874 Fix typo on on landing page of site (#4075) 2018-02-28 19:39:11 -03:00
Stephen Scott 6f6d974d27 Bump own prettier dependency version to 1.11.1 2018-02-28 15:26:27 -07:00