Lucas Duailibe
65daff16cf
Add Tidelift banner
2019-05-13 16:25:05 -03:00
Lucas Duailibe
17d9653d9f
Update CHANGELOG.unreleased.md
2019-05-13 15:12:30 -03:00
Lucas Duailibe
8149852ff9
Update CHANGELOG.unreleased.md
2019-05-13 15:10:25 -03:00
Sosuke Suzuki
e3b2f4adb4
Keep a trailing comma in type parameter in .tsx files ( #6115 )
2019-05-13 14:53:45 -03:00
Lucas Duailibe
7bb32f41f5
Bump Prettier version
2019-05-13 10:55:54 -03:00
Lucas Duailibe
4a5659a2cb
Update docs
2019-05-13 10:54:29 -03:00
Lucas Duailibe
e3e4d23a12
Release 1.17.1
2019-05-13 10:52:18 -03:00
Lucas Duailibe
aa7b68c0f0
Release 1.17.1
2019-05-13 10:49:00 -03:00
jwbay
6cee80b5b5
Don't break simple template literals ( #5979 )
...
A simple template literal is initially defined as a literal wherein all the expressions are identifiers or member access expressions where all parts are identifiers. We print these expressions into strings with infinite print width before printing the template.
2019-05-08 13:14:55 -03:00
Lucas Duailibe
b44748eecb
Fix lint
2019-05-08 13:09:57 -03:00
Lucas Duailibe
58b08c9915
Update CHANGELOG.unreleased.md
2019-05-08 12:59:52 -03:00
Yang Su
54b7655dab
Improved multiline closure comment detection ( #6070 )
2019-05-07 07:30:07 -03:00
mathieulj
26183e5be2
Use same print width for range formatting as normal formatting. ( #6050 )
...
* Use same print width for range formatting as normal formatting.
Fixes an issue were a file would end up formatted differently
with ranged formatting (--range-start & --range-end) versus
normal whole file formatting.
* Document range bugfix in changelog.
2019-05-04 10:18:55 -04:00
Cyrille David
84cc273c7d
fix(glimmer): {{else}}{{#if}} into {{else if}} merging ( #6080 )
2019-05-02 16:26:26 +03:00
Evilebot Tnawi
157b020de6
fix(javascript): correctly handle comments in empty arrow function expressions ( #6087 )
2019-04-30 14:25:20 +03:00
Justin Ridgewell
c085aeb152
Fix closure compiler type casts ( #5947 )
...
* Fix closure compiler type casts
This fixes casts when they are followed by a closing parenthesis, eg:
```js
foo( /** @type {!Array} */(arrOrString).length );
```
The old code would see the `CallExpresion`'s closing `)` and assume the typecast belonged to the `MemberExpression`, not the `arrOrString` `Identifier`.
This would be easier to accomplish if every AST would tell us if the expression were parenthesized. If they did, we could check that the node were parenthesized and either it or an ancestor has a typecast, stopping when we find an ancestor is itself parenthesized.
* More tests, and changelog
* Fix while loop
* Update changelog
* Update CHANGELOG.unreleased.md
* Use babel's parenthesized information
* Cleanup call
2019-04-26 13:05:57 -04:00
James George
ed15b6d04e
Add exit code information to cli docs ( #6049 )
...
* Update docs 👍
Add information regarding exit codes to the cli docs
* Markdown fix 🚧
Docs linting fixes
* Remove extraneous whitespace
2019-04-16 07:40:11 -04:00
Georgii Dolzhykov
91797439d9
docs(blog): add missing subheader ( #6060 )
2019-04-15 11:30:50 -03:00
Lucas Duailibe
5f41d91b7d
Commit new doc page in versioned docs
...
Fixes #6056
2019-04-15 11:21:01 -03:00
Lucas Duailibe
6dcc7a0f55
Fix lint in blog post
2019-04-12 17:46:18 -03:00
Lucas Duailibe
ff79721397
Bump Prettier dependency to 1.17.0
2019-04-12 17:44:48 -03:00
Lucas Duailibe
3250dd002c
Add 1.17 blog post ( #6052 )
2019-04-12 17:40:37 -03:00
Lucas Duailibe
55abeb2108
Release 1.17.0
2019-04-12 17:35:23 -03:00
Chris Brody
6ae41067cf
Test generics in object methods in TypeScript ( #5989 )
2019-04-08 16:56:39 -03:00
Chris Brody
4d6ce371fe
ignore 4.0.6 update ( #5987 )
2019-04-08 16:38:20 -03:00
Chris Brody
9dbe96705d
@angular/compiler 7.2.9 update ( #5985 )
2019-04-08 16:28:49 -03:00
Ben Scott
4f6f43dec1
Add stylelint integration docs ( #5153 )
...
* Add stylelint integration docs
* Add an "Integrating With Linters" docs page
This replaces the eslint page
* PR Feedback
* Update docs/integrating-with-linters.md
Co-Authored-By: BPScott <227292+BPScott@users.noreply.github.com>
2019-04-08 08:32:24 +02:00
Chris Brody
dbd09175f2
@babel/code-frame 7.0.0 update ( #5986 )
2019-04-05 00:37:57 +03:00
Evilebot Tnawi
dcaed91518
fix: respect newlines in parameters ( #5836 )
2019-04-04 09:50:07 -03:00
Adrian Zgorzałek
9cb50add5e
graphql: Support variable directives. ( #6020 )
2019-04-04 09:47:05 -03:00
Adrian Zgorzałek
7c9823fcba
Teach prettier/graphql about formatting fragment variables. ( #6016 )
...
Fragment variables are an experimental extension to GraphQL schema.
Formatting should follow the same rules as formatting an OperationDefinition node,
hence code is the same.
2019-04-04 09:44:52 -03:00
Ika
f4bcb13d41
feat(typescript): support TS 3.4 ( #6027 )
...
- add support for `readonly` operator
- `as const` was already supported, added tests to ensure no regression
2019-04-04 15:32:54 +08:00
Noah Sugarman
0b07e10833
fix multiline dynamic import comments ( #6025 )
2019-04-02 12:35:03 -07:00
Kevin Gibbons
1e471a0079
Add parentheses for immediately-constructed fn/class ( #5996 )
2019-03-28 21:06:39 +03:00
Alex Rattray
850493e424
Add doc build ( #6009 )
2019-03-25 09:44:22 -07:00
Nathan Totten
0d0e88cfdf
Added salesforce & heroku users ( #6004 )
2019-03-23 12:54:37 -04:00
Matthew Gerstman
15cd187519
Add Grey Logo For Dropbox ( #5997 )
2019-03-21 19:55:47 +01:00
Chris Brody
2681e87d6a
webpack@4.29.6 update in website/package.json ( #5990 )
2019-03-20 12:54:28 -04:00
Zaven Muradyan
887f800651
fix(angular): don't add unnecessary parentheses to pipes ( #5929 )
2019-03-13 09:02:36 +08:00
Lucas Azzola
f32b289032
Support shared Prettier configuration ( #5963 )
...
* Support external configuration
* Document changes
* Update existing snapshots
* Update existing snapshots (2)
* Fix typo in docs
* Add example config repo
2019-03-13 09:34:51 +11:00
Matthew Gerstman
ef48f71b7b
Add Dropbox as a user ( #5965 )
2019-03-12 14:55:06 -04:00
Andrey Okonetchnikov
8a8b88f2e6
docs: Add simplified installation instructions for lint-staged ( #5911 )
...
* docs: Add simplified installation instructions for lint-staged
Currently, to install and configure lint-staged you'd need to manually install all packaged and modify the `package.json`.
With `mrm` it's done automatically depending on what version of Prettier is installed and specified in project's dependencies.
* docs: Update according to feedback
* Update docs/precommit.md
Co-Authored-By: okonet <okonet@users.noreply.github.com>
2019-03-12 12:01:13 -04:00
Hugo Alliaume
b38319740a
feat: autoload plugins that are located in `@*/prettier-plugin-* ( #5945 )
...
* add tests
* implement the feature
* update docs
* update changelog
* typo
2019-03-10 20:34:04 +11:00
Jed Fox
a6ca8201da
Update the PR template ( #5946 )
2019-03-06 10:53:38 -05:00
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