Lucas Azzola
f526c47b1e
Add an option to modify when Prettier quotes object properties ( #5934 )
...
* Implement quote-props=preserve
* Implement quote-props=consistent
* Add tests
* Enable quoteProps in playground
* Add documentation
* Cache objectHasStringProp calculations
* Fixup changelog
2019-03-06 20:33:08 +11:00
Warren Seine
3a9006659e
Fix trailing comment output when the printer returns a doc instead of a string. ( #5930 )
...
Previously, Prettier printed `[Object object]` in that situation.
2019-03-03 11:15:08 -08:00
Jed Fox
aec3978a13
Update the language display on the homepage ( #5901 )
...
* Update the language display on the homepage
* Remove trailing slash from URLs
* HTTP → HTTPS
* Remove Python
2019-02-26 11:31:16 -05:00
Alan Foster
723a047b91
Remove archived prettier for ruby ( #5906 )
...
https://github.com/iamsolankiamit/prettier-ruby has now been archived and deprecated in favour of https://github.com/prettier/plugin-ruby
Original PR: https://github.com/prettier/prettier/pull/5841
**✨ [Try the playground for this PR](https://prettier.io/playground-redirect )✨ **
2019-02-26 12:00:51 +01:00
Lipis
fa24bacec4
Update dependent repos and integrations ( #5904 )
...
**✨ [Try the playground for this PR](https://prettier.io/playground-redirect )✨ **
2019-02-24 13:10:44 +01:00
Jed Fox
5d671f9360
Add a code of conduct ( #5891 )
...
* Add a code of conduct
* Run through Prettier
* Typo
* Use direct link instead of reference
2019-02-22 11:01:32 -05:00
fisker Cheung
9352331f1a
Remove duplicated getLast ( #5889 )
2019-02-21 12:03:35 -03:00
Julien Marchand
ed1db90c68
Honor stdin-filepath when outputting error messages. ( #5878 )
2019-02-20 08:39:25 -05:00
Shahar Soel
db560e4e19
Update Languages.yml ( #5866 )
2019-02-16 22:39:40 +08:00
Shahar Soel
76e06cf98b
update stable-docs plugins.md ( #5869 )
...
- Java plugin link (in Jhipster org now)
- Added TOML plugin to stable docs (already in the regular docs).
2019-02-16 22:36:43 +08:00
jgconway
429da4bc52
Fix spelling/grammar mistakes ( #5873 )
2019-02-16 09:50:56 +01:00
Yang Su
379e84a6a4
add quip to prettier users ( #5876 )
2019-02-16 12:51:46 +11:00
Yang Su
71b815f583
JavaScript: Fix parens logic for optional chaining expressions and closure type casts ( #5843 )
2019-02-11 13:33:56 -02:00
Kevin Deisz
d0dd0329f2
Add @prettier/plugin-ruby package to docs ( #5841 )
...
* Add prettier-ruby package
* Move into the prettier repo
2019-02-08 12:41:36 -05:00
Alon Bukai
bf389fb48e
fix: grammar `if it get` -> `if it goes` ( #5835 )
...
Another possible option is `if it gets`
<!-- Please provide a brief summary of your changes: -->
<!-- Please ensure you’ve done all of these things (if applicable). -->
<!-- You can replace the `[ ]` with `[x]` to mark each task as done. -->
- [ ] I’ve added tests to confirm my change works.
- [ ] (If changing the API or CLI) I’ve documented the changes I’ve made (in the `docs/` directory)
- [ ] (If not an internal change) I’ve added my changes to the `CHANGELOG.unreleased.md` file following the template.
- [x] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md ).
**✨ [Try the playground for this PR](https://prettier.io/playground-redirect )✨ **
2019-02-06 21:31:47 +11:00
Shahar Soel
038b0d8e85
Update plugins.md ( #5829 )
...
- Added link to toml prettier plugin (alpha version released).
- Changed link and owner of Java plugin as it was moved to the Jhipster org.
2019-02-06 12:07:17 +11:00
Maël Nison
9793154833
Tweak the plugin directory search ( #5819 )
...
* Update load-plugins.js
* Update load-plugins.js
* Adds a test
* Fixes lint
2019-02-05 07:47:55 -05:00
James Birtles
ca43aad88a
Add svelte plugin to plugins page ( #5827 )
2019-02-04 09:57:18 +08:00
Ika
dd7715ae85
Bump Prettier dependency to 1.16.4
2019-02-03 20:35:04 +08:00
Lucas Azzola
2982dcd897
Fixup getSupportInfo for babylon parser prior to 1.16.0 ( #5826 )
...
This undoes an accidental breaking change where `prettier.getSupportInfo('1.0.0')` would report supporting the `babel` parser instead of `babylon`.
Fixes #5822
2019-02-03 21:57:59 +11:00
Nathan Totten
a093bb3f7b
Adds LWC Parser to support unquoted interop attributes ( #5800 )
...
This pull requests adds a new parser option `lwc`. This is the same as the HTML parser, but it adds support for unquoted HTML attributes per the needs of LWC. See: #5627
2019-02-01 13:58:50 +08:00
Ika
154435bb36
Bump Prettier dependency to 1.16.3
2019-01-31 12:23:34 +08:00
陈帅
a9d2c41464
feat(markdown): do not align table contents if it exceeds the print width and `--prose-wrap never` is set ( #5701 )
...
Fixes #5651
2019-01-30 12:24:21 -05:00
Ika
cb8d300ca0
Bump Prettier dependency to 1.16.2
2019-01-30 16:24:57 +08:00
Ika
3c56b9ad18
Release 1.16.2
2019-01-30 16:23:45 +08:00
Yang Su
47da0804a9
JavaScript: fix edge cases in type cast comment detection regex ( #5793 )
...
Fix edge cases involving {...} ([record @type](http://usejsdoc.org/tags-type.html )) and newlines in prettier's detection code for type cast comments
2019-01-30 15:24:34 +08:00
Ika
847a78e8e9
fix(html): do not format non-normal whitespaces as normal whitespaces ( #5797 )
2019-01-30 14:30:10 +08:00
Franco Victorio
1802ce1d9d
Add tutorials section to plugins doc ( #5805 )
2019-01-30 14:11:03 +08:00
Alexander Kachkaev
36aeb4ce4f
Fix CI detection to avoid unwanted TTY behavior ( #5804 )
2019-01-30 14:08:03 +08:00
James Henry
1143619600
chore: update typescript-estree to new package name ( #5799 )
2019-01-28 19:46:51 -05:00
Ika
7faa2608c1
Bump Prettier dependency to 1.16.1
2019-01-22 21:54:32 +08:00
Ika
0274f9ca42
Release 1.16.1
2019-01-22 21:53:04 +08:00
Ika
153d2d0570
fix(typescript): stable parens for function type in arrow return type ( #5790 )
2019-01-22 21:07:10 +08:00
Ika
1061be0702
fix(mdx): correctly recognize inline JSX ( #5783 )
2019-01-22 12:02:30 +08:00
Ika
2002ce0453
fix(javascript): add necessary parentheses for decorators ( #5785 )
2019-01-22 00:54:41 +08:00
Simon Knox
737884341d
Update ext install command to match readme ( #5784 )
...
The previous command opened a list of forks and projects with the same name, it wasn't clear which one to install
2019-01-22 00:27:31 +08:00
Simen Bekkhus
565731668f
fix: do not format callbacks with arguments as React hooks ( #5778 )
...
Ref: https://github.com/prettier/prettier/pull/5608#issuecomment-455860396
2019-01-22 00:26:39 +08:00
Ika
106fc36c81
docs: add CHANGELOG.unreleased.md ( #5775 )
...
Ref: https://github.com/prettier/prettier/issues/5735#issuecomment-452784056
2019-01-21 08:33:07 +08:00
Karl Horky
a01e6c75da
Fix typo ( #5776 )
2019-01-20 22:53:22 +08:00
Ika
1dc3c6dc2d
docs(blog): 1.16 release ( #5752 )
2019-01-20 16:01:53 +08:00
Ika
32f7e03906
Bump Prettier dependency to 1.16.0
2019-01-20 16:01:28 +08:00
Ika
3a5fc6571a
Release 1.16.0
2019-01-20 15:59:39 +08:00
Ika
a9fd8e2cf4
fix(api): do not report the same deprecation warning more than once ( #5774 )
...
A quick fix for suppressing duplicate deprecation warnings.
2019-01-20 15:38:19 +08:00
Ika
3d7970a673
chore(scripts): add update-stable-docs to release script ( #5772 )
...
Ref: https://github.com/prettier/prettier/pull/5676#issuecomment-449624247
2019-01-20 11:43:26 +08:00
Ika
42f7b6025e
fix(javascript): remove unnecessary linebreaks from html templates ( #5771 )
2019-01-20 11:15:18 +08:00
Wenlu Wang
1dea4ef6f2
fix: allow plugin instance ( #5760 ) ( #5763 )
2019-01-18 12:40:18 -02:00
Ika
72d9732f1d
chore(azure): node v4 compatible yarn ( #5766 )
...
Workaround for yarnpkg/yarn#6900
2019-01-18 21:40:35 +08:00
James Henry
8ac0a731a4
chore: update typescript-estree to 18.0.0 ( #5750 )
2019-01-12 17:02:16 -05:00
James Henry
ef6386015d
fix: update typescript and typescript-estree to latest ( #5728 )
2019-01-12 11:10:52 +08:00
Jimmy Gaussen
282597c1e5
docs: fix Windows build ( #5742 ) ( #5743 )
2019-01-10 18:33:43 -05:00