Suchipi
0fa34b2c63
Print nested ternaries differently ( #5039 )
2018-10-14 12:45:37 -03:00
Suchipi
418a04bf2b
Revert this/super blacklist for function composition heuristic ( #4936 )
2018-08-08 09:18:46 -06:00
Suchipi
3bfaf6626c
Never inline decorators, unless they're lone parameter decorators ( #4830 )
...
Fixes #2613 .
2018-07-20 13:48:37 -06:00
Suchipi
cb5e1db4a5
Revert "Ternary Operators in JSX Expression Containers ( #4731 )" ( #4736 )
...
This reverts commit 12046cd01b .
2018-06-22 10:32:38 -06:00
Suchipi Izumi
c7d40b0ed9
1.13.2
2018-05-29 00:23:19 -06:00
Suchipi Izumi
89c84e5ee0
Fix some build script issues
...
* Copy README to dist
* Fix strings in prepublishOnly
2018-05-29 00:22:59 -06:00
Suchipi Izumi
fea34d4e70
Bump version to 1.13.1
2018-05-29 00:11:31 -06:00
Suchipi
2303d6801f
website: Change pre overflow-x to auto ( #4573 )
...
`overflow-x: scroll` shows scrollbars under every code block even if they aren't scrollable:

2018-05-28 11:00:43 +10:00
Suchipi
f5f84977a5
Rename 2018-05-23-1.13.0.md to 2018-05-27-1.13.0.md
...
Context: https://github.com/prettier/prettier/pull/4530#issuecomment-392359122
2018-05-27 13:36:48 -06:00
Suchipi
e0b6a328aa
Fix typo in 1.13 blog post
2018-05-27 12:44:20 -06:00
Suchipi
5508546de8
Add formatWithCursor, check, doc, and util to the standalone build ( #4556 )
...
* Add formatWithCursor, check, and doc to the standalone build
* Add util, too
2018-05-26 17:25:36 -06:00
Suchipi
ec45dc9a4c
(refactor): Move common options out of JS plugin ( #4445 )
...
* (refactor): Move common options out of JS plugin
* Add Common category to playground
2018-05-15 14:14:50 -06:00
Suchipi
ed18f9f7d7
Add heuristic to format functional composition more nicely ( #4431 )
...
* Add heuristic to format functional composition more nicely
* Regex -> array
* Use object instead of array for faster lookup
* Remove empty lines
* Add redux connect
Also add comments for libraries
2018-05-07 21:46:30 -06:00
Stephen Scott
ad318f6f36
1.12.1
2018-04-16 20:45:29 -06: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
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
suchipi
6d4ffa181f
Update CHANGELOG.md
2018-02-28 15:51:26 -07:00
Stephen Scott
6f6d974d27
Bump own prettier dependency version to 1.11.1
2018-02-28 15:26:27 -07:00
Stephen Scott
0f1757a834
Bump version to 1.11.1
2018-02-28 15:21:37 -07:00
suchipi
74a132c4ba
Bump own prettier dependency version to 1.11.0 ( #4058 )
2018-02-26 22:03:56 -07:00
Stephen Scott
51202f4b6e
Format 2-26 blog post with prettier
2018-02-26 18:47:55 -07:00
Stephen Scott
82492deb94
Bump version to 1.11.0
2018-02-26 18:28:33 -07:00
suchipi
b1b504fc96
1.11 Release Notes and Changelog ( #4035 )
...
* Add blog post with changelog
* Add release notes link to CHANGELOG.md
* Fix typo in tab ternary fix code block
* Fix an unfinished edit
* Add missing parens
* Update 2018-02-23-1.11.0.md
* Update 2018-02-23-1.11.0.md
* Add more release notes
* Update 2018-02-23-1.11.0.md
* prettier -> Prettier
* Update date
* cleaner
* casing
* Update CHANGELOG.md
* Update 2018-02-26-1.11.0.md
* Update 2018-02-26-1.11.0.md
* Update 2018-02-26-1.11.0.md
2018-02-26 18:17:38 -07:00
Suchipi Izumi
89ac80c842
Bump version to 1.11.0-rc.1
2018-02-23 17:01:19 -07:00
Suchipi Izumi
41a9ababc3
Add updated snapshot
...
Whoops, forgot this
2017-11-27 22:27:34 -07:00
Suchipi Izumi
6abdd2c6b7
PR feedback
2017-11-27 22:27:34 -07:00
Stephen Scott
a6c12ca7a9
Inline type parameters in test callback
2017-11-27 22:27:34 -07:00
Stephen Scott
e4eb8a4065
Add implementation for arrow parens option
...
Based on https://github.com/prettier/prettier/pull/2676
* Thread `path` and `options` through helpers so we don't need to add `needsParens` onto the AST node anymore (mutation)
* Pull test call detection logic out into helper method so it can be re-used for arrow function parens
* Add arrow function parens option implementation (avoid/always)
* Don't break arrow function parens around (done) in test call
2017-11-27 22:27:34 -07:00
Stephen Scott
9a1e408a3f
Add option and specs (no implementation yet)
...
These new snapshots are from https://github.com/prettier/prettier/pull/2676
2017-11-27 22:26:58 -07:00
Stephen Scott
11624eec20
Merge pull request #3055 from azz/$schema
...
Delete $schema from resolved config
2017-10-18 15:08:36 -06:00
Stephen Scott
75781a6d16
1.7.2
2017-09-27 17:20:13 -06:00
Stephen Scott
c2bc33b3ad
1.7.1
2017-09-27 11:00:29 -06:00
Stephen Scott
e1c2085d2e
Merge pull request #2888 from motiz88/fix-2593
...
Use semicolons in Flow interface-like bodies (#2593 )
2017-09-25 22:31:24 -07:00
Stephen Scott
bcb4224205
1.7.0
...
🎉
2017-09-14 11:21:33 -06:00
Stephen Scott
655fef1bf9
Merge pull request #2767 from ikatyang/refactor/cli
...
refactor(cli): centralize options
2017-09-14 11:12:19 -06:00
Stephen Scott
3ed2bae1b4
Improve JSX ternary formatting
...
* Now JSX-mode ternaries only break if they need to.
* Only the outermost ternary in a chain of JSX-mode ternaries will become a group.
* We don't wrap null in parens when breaking JSX-mode ternaries.
This commit also improves the test coverage and explanation in tests/jsx/conditional-expression.js.
2017-07-13 10:21:58 -06:00
Stephen Scott
757037948a
Improve JSX Formatting
...
* Arrow Function Expressions returning JSX will now add parens when the JSX breaks
* Conditional expressions within (or containing) JSX are formatted in a more natural way (for JSX), especiall when chained
* JSX in logical expressions (|| or &&) is always wrapped in parens
Fixes #2208
2017-07-13 10:20:42 -06:00