James Long
|
74fc539e1a
|
Fix usage with the Flow parser
|
2017-01-09 21:24:42 -05:00 |
James Long
|
27af6be07a
|
Apply bracketSpacing option to array literals
|
2017-01-09 20:58:51 -05:00 |
James Long
|
5c53a2d59c
|
Use babylon directly and convert recast's comment algorith to use our own API
|
2017-01-09 17:37:45 -05:00 |
James Long
|
7ad69b05ca
|
Tweak JSX attributes and fix bug with function params
|
2017-01-09 14:28:23 -05:00 |
James Long
|
f40f5f11d6
|
Add space before self-closing a JSXElement
|
2017-01-09 14:16:28 -05:00 |
James Long
|
892d070313
|
Only allow ArrowFunctionExpression types to break themselves in CallExpression's if they using a block
|
2017-01-09 14:01:14 -05:00 |
James Long
|
994432c193
|
Improve printing of comments
|
2017-01-09 13:47:02 -05:00 |
James Long
|
542c0ee7b9
|
Reprint pp.js and printer.js
|
2017-01-09 12:09:04 -05:00 |
James Long
|
aed3c1af71
|
Handle curly brackets in SwitchCase types
|
2017-01-09 12:07:39 -05:00 |
James Long
|
6b582f808c
|
Don't prioritize breaking on last arg if it's a CallExpression
|
2017-01-09 11:58:47 -05:00 |
James Long
|
bcd44b4368
|
Keep blank lines from original source
|
2017-01-09 09:46:09 -05:00 |
James Long
|
78a9da2ff4
|
Merge pull request #9 from demoneaux/readme
Improve readme.
|
2017-01-08 14:49:30 -05:00 |
James Long
|
8a5f3d1b10
|
Merge pull request #4 from jlongster/call-chain
Initial attempt at chaining call expressions
|
2017-01-08 14:44:58 -05:00 |
James Long
|
c10681d148
|
Pull out special chain printing into utility function
|
2017-01-08 14:44:44 -05:00 |
James Long
|
fe4484d2e3
|
Update call/member expression chaining heuristic to account for NewExpression's
|
2017-01-08 14:00:41 -05:00 |
James Long
|
d5ab6ab921
|
Detect chained call expressions and format them specifically
|
2017-01-08 13:56:57 -05:00 |
Benjamin Tan
|
ec1f9269d2
|
Improve readme.
|
2017-01-08 19:54:54 +08:00 |
James Long
|
b5a455e41f
|
Merge pull request #5 from vjeux/fix_fatal
Fix missing option argument
|
2017-01-06 23:35:06 -05:00 |
Christopher Chedeau
|
c5ff571c6d
|
Fix missing option argument
|
2017-01-06 19:56:30 -08:00 |
James Long
|
9c72530589
|
Reduce duplicate code for printing intersection & union types
|
2017-01-05 15:11:40 -05:00 |
James Long
|
5c39dc02e6
|
Improve intersection and union type annotation
|
2017-01-05 14:43:05 -05:00 |
James Long
|
7b0ec6d935
|
Break ternary ops across newlines if needed
|
2017-01-05 12:32:56 -05:00 |
James Long
|
b5ae965274
|
Reprint pp.js
|
2017-01-05 12:21:57 -05:00 |
James Long
|
0d4d21cc68
|
Print trailing commas everywhere if enabled
|
2017-01-05 12:19:30 -05:00 |
James Long
|
fcd5436b38
|
Improve if/else printing and other clauses
|
2017-01-05 12:10:14 -05:00 |
James Long
|
fc186c8df8
|
Add option for trailing commas in objects
|
2017-01-05 11:36:41 -05:00 |
James Long
|
9596695a12
|
Rename quotes config option to
|
2017-01-05 10:01:43 -05:00 |
James Long
|
f1feb24dff
|
Reprint printer.js
|
2017-01-04 22:27:25 -05:00 |
James Long
|
835befebf5
|
Always output comment newlines, fix edge case with function param output
|
2017-01-04 22:26:46 -05:00 |
James Long
|
67e2f6d482
|
Simplify how options are normalized (fixes default options)
|
2017-01-04 20:45:28 -05:00 |
James Long
|
599b4311bb
|
Allow single quotes with --single-quotes option
|
2017-01-04 17:32:05 -05:00 |
James Long
|
b550f1d088
|
Use , to separate type fields instead of ;
|
2017-01-04 17:26:44 -05:00 |
James Long
|
8326963f2d
|
Add option to include spaces inside object/array literals, default to false
|
2017-01-04 17:23:07 -05:00 |
James Long
|
98fef67b4e
|
Fix a bug with expanding function args by passing group opts properly
|
2017-01-04 17:08:28 -05:00 |
James Long
|
fae314bee0
|
Merge pull request #3 from jlongster/expand-last-arg
Add `conditionalGroup` to allow manually specifying multiple represen…
|
2017-01-04 16:53:25 -05:00 |
James Long
|
898009ba66
|
Consistently print function parameters the correct way
|
2017-01-04 16:52:49 -05:00 |
James Long
|
588c8ce7cd
|
Add `conditionalGroup` to allow manually specifying multiple representations of a document; use it to support expanding last parameter of functions
|
2017-01-04 15:24:10 -05:00 |
James Long
|
fa16988401
|
If function declaration is too long, break all args on separate lines; also fix small bug in output cleansing
|
2017-01-01 20:33:53 -05:00 |
James Long
|
37601b0a86
|
Update snapshots
|
2017-01-01 20:20:45 -05:00 |
James Long
|
de4d7ac799
|
Reprint printer.js
|
2016-12-31 14:38:58 -05:00 |
James Long
|
5efa13a10c
|
Never print blank lines with spaces
|
2016-12-31 14:38:33 -05:00 |
James Long
|
a9d06355ee
|
Fix spacing algorithm
|
2016-12-30 23:10:22 -05:00 |
James Long
|
7451255906
|
Bootstrapped! Format the printer with the printer itself
|
2016-12-30 23:03:22 -05:00 |
James Long
|
c9e24eb477
|
Add spaces around certain statements, add --write option, and more
|
2016-12-30 23:01:07 -05:00 |
James Long
|
8861953e60
|
Remove old tests (part 2)
|
2016-12-30 21:24:33 -05:00 |
James Long
|
965ad7f93a
|
Remove old tests
|
2016-12-30 21:24:04 -05:00 |
James Long
|
0465bb5790
|
Add flow parser as an option, default to babylon
|
2016-12-30 21:23:50 -05:00 |
James Long
|
7ea2348b03
|
Various fixes with destructuring default, JSX, and more; all tests pass!
|
2016-12-30 17:00:11 -05:00 |
James Long
|
649e8a1efe
|
Add DeclareExportAllDeclaration to ast-types
|
2016-12-30 15:07:35 -05:00 |
James Long
|
a6f1e79db1
|
Ignore EmptyStatements when comparing asts, now down to 12 real failures \o/
|
2016-12-30 14:44:57 -05:00 |