Gabriel Harel
48697e9237
Handle missing cache directory for changedCache ( #6327 )
...
* handle missing cache directory for changedCache
* fallback to temp dir when cache dir not found
2019-07-26 13:03:26 -03:00
Gabriel Harel
6fae09b67e
Add --only-changed flag to CLI ( #5910 )
2019-07-22 11:17:24 -03:00
Matt Kane
7286413ee5
Add JSON script types ( #6293 )
...
* Add JSON mimetypes
* Use endsWith
Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-07-22 16:48:03 +03:00
Joffrey JAFFEUX
b557dc3603
[Glimmer/Handlebars] Forces multilines print when almost at max length ( #6249 )
2019-07-22 10:39:18 -03:00
Sosuke Suzuki
033002cdc3
TypeScript, Flow: Fix breaking ordering comments in React.useEffect ( #6270 )
2019-07-10 11:34:23 -03:00
Sosuke Suzuki
74f4d2b3c0
JavaScript: Keep line breaks when tagged template literal has a single line comment. ( #6236 )
2019-07-10 10:56:53 -03:00
Sosuke Suzuki
cfba21f493
JavaScript: Keep unary expressions parentheses with comments ( #6217 )
2019-07-10 10:06:08 -03:00
Gavin Joyce
12b8176d5d
[Glimmer] preserve html entities ( #6234 )
2019-07-08 11:07:41 +02:00
Gavin Joyce
e8037ff250
[Glimmer] improve text/mustache formatting ( #6206 )
2019-06-19 09:53:27 -03:00
James Reggio
353b2ca064
Config should not be evaluated for ignored files ( #6233 )
...
Prior to this change, the CLI would resolve the config for a file before
checking it against the ignored list. If the config was invalid, the CLI
would report a failure.
This change relocates the config-resolution phase until after the file
is confirmed to not be ignored.
2019-06-18 17:20:47 -03:00
Chris Brody
cacaa92a3f
@glimmer/syntax 0.39.3 update ( #5983 )
2019-06-18 08:50:51 -03:00
Lucas Duailibe
8fcc7c18b3
Printing arguments: short circuiting some cases ( #6229 )
2019-06-17 06:14:16 -03:00
Lucas Duailibe
4d67db3da1
Revert "refactor: rewrite FastPath class ( #6225 )" ( #6226 )
...
This reverts commit e068c318b4
.
2019-06-15 16:10:26 -03:00
fisker Cheung
e068c318b4
refactor: rewrite FastPath class ( #6225 )
2019-06-15 15:11:45 -03:00
Gavin Joyce
ff7bc1c008
[Glimmer] improve text/mustache formatting ( #6186 )
2019-06-14 12:11:47 -03:00
fisker Cheung
24f161db56
Bump `eslint` ( #6201 )
2019-06-12 11:40:05 -03:00
Lucas Duailibe
4e8f911a29
Print comment following a JSX generic ( #6209 )
2019-06-10 09:30:54 -03:00
Lucas Duailibe
3805034bdf
Improve Rollup setup
2019-06-07 18:20:40 -03:00
fisker Cheung
99d4b86c18
Rollup update ( #6200 )
2019-06-07 16:58:05 -03:00
Lucas Duailibe
a90adf4753
Fix adding trailing comma in TS tuples ( #6199 )
2019-06-07 11:18:42 -03:00
Karl Horky
f070f00385
Fix method name and missing curly brace ( #6196 )
2019-06-07 10:48:24 -03:00
Lucas Duailibe
448328270d
Support overrides for dotfiles ( #6194 )
2019-06-07 09:45:56 -03:00
Sosuke Suzuki
8812792e93
[TypeScript] Add trailing comma for only arrow functions in tsx. ( #6190 )
...
* Modify to add traling comma only for allow-function
* Add tests
* Update CHANGELOG.unreleased.md
* Add pr number and link
* Modify to improve RegExp to detect tsx file
2019-06-07 09:01:58 -03:00
Lucas Duailibe
4cc99242a8
Bump Prettier dependency to 1.18.0
2019-06-06 18:48:11 -03:00
Gavin Joyce
90308ebe76
fix: avoid unwanted whitespace in glimmer components ( #6178 )
2019-06-05 11:15:11 -03:00
Lucas Duailibe
2e6191fe77
Prevent adding quotes if there's a numeric literal as key ( #6138 )
2019-06-04 13:45:29 -03:00
Julian Rosse
64ab703d41
Pass options to willPrintOwnComments() ( #6081 )
2019-06-04 12:48:51 -03:00
Alex Rattray (Stripe)
d805083a07
Export doc.utils.findInDoc ( #6097 )
2019-06-04 12:48:06 -03:00
Sosuke Suzuki
ed2055b81f
[TypeScript]Keep a trailing comma on tuple types ( #6172 )
2019-06-03 09:59:34 -03:00
Georgii Dolzhykov
e4f0df5bed
fix: nested embeds (JS in HTML in JS) ( #6038 )
2019-05-27 14:42:13 -03:00
Lucas Duailibe
f8875c1caa
Prevent parens around BindExpressions as properties of MemberExpressions ( #6159 )
2019-05-27 13:58:26 -03:00
Sosuke Suzuki
dcf4c21171
Keep necessary parentheses around the bind expression passed to "new" expression ( #6152 )
2019-05-27 09:21:34 -03:00
Sosuke Suzuki
3654108ebe
TypeScript: Keep line breaks within mapped types. ( #6146 )
2019-05-24 19:00:32 -03:00
Kevin Gibbons
c03fcfedb1
Address parentheses bugs for edge cases with call and new ( #6148 )
2019-05-24 11:09:17 -03:00
Georgii Dolzhykov
b3adb46ba9
Keep parens around non-null assertions for new-expressions only ( #6140 )
2019-05-22 19:01:47 -03:00
Lucas Duailibe
7e47b4ea26
Preserve parens around expressions in default export declaration that start with function or class ( #6133 )
2019-05-20 09:31:38 -03:00
Rich Hong
906d33749b
Add support for styled-jsx external styles ( #6089 )
2019-05-19 13:26:30 -03:00
Sosuke Suzuki
3b3c411642
TypeScript: Keep parentheses around a function called with non-null assertion. ( #6136 )
2019-05-19 13:15:02 -03:00
Sosuke Suzuki
4c64f13ef4
[TS] keep a pair of parentheses where there extra pairs. ( #6131 )
2019-05-17 18:13:40 -03:00
Lucas Duailibe
eca23e111f
Stop converting empty JSX elements to self-closing elements ( #6127 )
...
Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-05-16 15:14:35 -03:00
Lucas Duailibe
df258d6d7e
Add parens in JSX spread element with expressions ( #6130 )
2019-05-16 15:06:41 -03:00
Evilebot Tnawi
7a76e5d08e
fix(javascript): correctly handle comments in empty arrow function expressions ( #6086 )
2019-05-15 12:46:12 -03:00
Evilebot Tnawi
2cebeecb4f
fix(javascript): do not hug sequence expression in object properties ( #6088 )
2019-05-15 12:29:45 -03:00
Lucas Duailibe
012b7a653e
Prevent adding unnecessary quotes when a computed key exists ( #6119 )
2019-05-14 19:41:49 -03:00
Mykola Bilochub
c95b81dd3d
fix(markdown): correctly determine count of backticks in inline code ( #6110 )
2019-05-14 12:51:31 -03:00
Brian Kim
48d542ec1e
TypeScript: Don’t breakup call expressions when the last argument is an arrow function with a simple return type ( #6106 )
2019-05-14 10:57:42 -03:00
Justin Ridgewell
4fda7af783
Fix closure type cast without spaces ( #6116 )
...
* Fix closure type cast without spaces
Closure typecasts don't require a space between the `@type` and opening `{`.
* More tests, and add a changelog entry
2019-05-14 10:14:52 -03:00
Sosuke Suzuki
e3b2f4adb4
Keep a trailing comma in type parameter in .tsx files ( #6115 )
2019-05-13 14:53:45 -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
Yang Su
54b7655dab
Improved multiline closure comment detection ( #6070 )
2019-05-07 07:30:07 -03:00