0ba4d71c5cAdd link to blog post
James Long
2017-01-10 10:33:54 -05:00
e72347e51bFix tests on Windows.
Benjamin Tan
2017-01-10 21:53:09 +08:00
258575af9aMake testRegex Jest config a string instead of array.
Benjamin Tan
2017-01-10 21:51:28 +08:00
14f8161c32Add language support to readme
James Long
2017-01-10 09:06:50 -05:00
14325b1532Add MIT license
James Long
2017-01-10 09:06:32 -05:00
50f898dc4aAcknowledge refmt
James Long
2017-01-10 01:02:39 -05:00
92b3ecfd6bFinal readme tweaks
James Long
2017-01-10 01:00:02 -05:00
47c9b50f48More docs
James Long
2017-01-10 00:52:52 -05:00
612e3411cbMove atom package out and start new readme
James Long
2017-01-10 00:45:11 -05:00
b553718aeeFix up atom package
James Long
2017-01-09 23:44:12 -05:00
dd8dda101dUpdate atom package
James Long
2017-01-09 23:27:17 -05:00
a0edc2a520Document more CLI flags in usage text
James Long
2017-01-09 23:22:58 -05:00
2e4eb91edcImprove CLI command
James Long
2017-01-09 23:03:35 -05:00
7639b755c2More renaming of jscodefmt -> prettier
James Long
2017-01-09 22:48:56 -05:00
79e222bb53Rename to prettier
James Long
2017-01-09 22:45:22 -05:00
a4643f1baeAdd special case for comment at top of file; regenerate snapshots
James Long
2017-01-09 21:49:06 -05:00
74fc539e1aFix usage with the Flow parser
James Long
2017-01-09 21:24:42 -05:00
27af6be07aApply bracketSpacing option to array literals
James Long
2017-01-09 20:58:51 -05:00
5c53a2d59cUse babylon directly and convert recast's comment algorith to use our own API
James Long
2017-01-09 17:37:45 -05:00
7ad69b05caTweak JSX attributes and fix bug with function params
James Long
2017-01-09 14:28:23 -05:00
f40f5f11d6Add space before self-closing a JSXElement
James Long
2017-01-09 14:16:28 -05:00
892d070313Only allow ArrowFunctionExpression types to break themselves in CallExpression's if they using a block
James Long
2017-01-09 14:01:14 -05:00
994432c193Improve printing of comments
James Long
2017-01-09 13:47:02 -05:00
542c0ee7b9Reprint pp.js and printer.js
James Long
2017-01-09 12:09:04 -05:00
aed3c1af71Handle curly brackets in SwitchCase types
James Long
2017-01-09 12:07:39 -05:00
6b582f808cDon't prioritize breaking on last arg if it's a CallExpression
James Long
2017-01-09 11:58:47 -05:00
bcd44b4368Keep blank lines from original source
James Long
2017-01-09 09:44:39 -05:00
78a9da2ff4Merge pull request #9 from demoneaux/readme
James Long
2017-01-08 14:49:30 -05:00
8a5f3d1b10Merge pull request #4 from jlongster/call-chain
James Long
2017-01-08 14:44:58 -05:00
c10681d148Pull out special chain printing into utility function
James Long
2017-01-08 14:44:44 -05:00
fe4484d2e3Update call/member expression chaining heuristic to account for NewExpression's
James Long
2017-01-08 14:00:41 -05:00
d5ab6ab921Detect chained call expressions and format them specifically
James Long
2017-01-05 15:26:45 -05:00
ec1f9269d2Improve readme.
Benjamin Tan
2017-01-08 19:54:54 +08:00
b5a455e41fMerge pull request #5 from vjeux/fix_fatal
James Long
2017-01-06 23:35:06 -05:00
c5ff571c6dFix missing option argument
Christopher Chedeau
2017-01-06 19:56:30 -08:00
9c72530589Reduce duplicate code for printing intersection & union types
James Long
2017-01-05 15:11:40 -05:00
5c39dc02e6Improve intersection and union type annotation
James Long
2017-01-05 14:43:05 -05:00
7b0ec6d935Break ternary ops across newlines if needed
James Long
2017-01-05 12:32:56 -05:00
b5ae965274Reprint pp.js
James Long
2017-01-05 12:21:57 -05:00
0d4d21cc68Print trailing commas everywhere if enabled
James Long
2017-01-05 12:19:30 -05:00
fcd5436b38Improve if/else printing and other clauses
James Long
2017-01-05 12:10:14 -05:00
fc186c8df8Add option for trailing commas in objects
James Long
2017-01-05 11:36:41 -05:00
9596695a12Rename quotes config option to
James Long
2017-01-05 10:01:43 -05:00
f1feb24dffReprint printer.js
James Long
2017-01-04 22:27:25 -05:00
835befebf5Always output comment newlines, fix edge case with function param output
James Long
2017-01-04 22:26:46 -05:00
67e2f6d482Simplify how options are normalized (fixes default options)
James Long
2017-01-04 20:45:28 -05:00
599b4311bbAllow single quotes with --single-quotes option
James Long
2017-01-04 17:32:05 -05:00
b550f1d088Use , to separate type fields instead of ;
James Long
2017-01-04 17:26:44 -05:00
8326963f2dAdd option to include spaces inside object/array literals, default to false
James Long
2017-01-04 17:23:07 -05:00
98fef67b4eFix a bug with expanding function args by passing group opts properly
James Long
2017-01-04 17:08:28 -05:00
fae314bee0Merge pull request #3 from jlongster/expand-last-arg
James Long
2017-01-04 16:53:25 -05:00
898009ba66Consistently print function parameters the correct way
James Long
2017-01-04 16:52:49 -05:00
588c8ce7cdAdd conditionalGroup to allow manually specifying multiple representations of a document; use it to support expanding last parameter of functions
James Long
2017-01-04 15:24:10 -05:00
fa16988401If function declaration is too long, break all args on separate lines; also fix small bug in output cleansing
James Long
2017-01-01 20:33:53 -05:00
37601b0a86Update snapshots
James Long
2017-01-01 20:20:45 -05:00
de4d7ac799Reprint printer.js
James Long
2016-12-31 14:38:58 -05:00
5efa13a10cNever print blank lines with spaces
James Long
2016-12-31 14:38:33 -05:00
a9d06355eeFix spacing algorithm
James Long
2016-12-30 23:10:22 -05:00
7451255906Bootstrapped! Format the printer with the printer itself
James Long
2016-12-30 23:03:22 -05:00
c9e24eb477Add spaces around certain statements, add --write option, and more
James Long
2016-12-30 23:01:07 -05:00
8861953e60Remove old tests (part 2)
James Long
2016-12-30 21:24:33 -05:00
965ad7f93aRemove old tests
James Long
2016-12-30 21:24:04 -05:00
0465bb5790Add flow parser as an option, default to babylon
James Long
2016-12-30 21:23:50 -05:00
7ea2348b03Various fixes with destructuring default, JSX, and more; all tests pass!
James Long
2016-12-30 17:00:11 -05:00
649e8a1efeAdd DeclareExportAllDeclaration to ast-types
James Long
2016-12-30 15:07:35 -05:00
a6f1e79db1Ignore EmptyStatements when comparing asts, now down to 12 real failures \o/
James Long
2016-12-30 14:44:57 -05:00
32d4200f60Wrap class expressions in parens if needed
James Long
2016-12-30 14:25:52 -05:00
4dfaf9da98Fix a few parens detection and more predicates
James Long
2016-12-30 14:10:52 -05:00
ed57110ef5Add type parameters on anon functions
James Long
2016-12-30 13:41:45 -05:00
e972a7f0b6Fix object and predicate annotations
James Long
2016-12-30 13:32:43 -05:00
6715abca76Tweak variable declaration printing
James Long
2016-12-30 11:56:42 -05:00
73755a686dFix type annotation for optional function type properties
James Long
2016-12-30 00:08:03 -05:00
11a01552a4Lots of bug fixes (will do smaller commits from now on)
James Long
2016-12-30 00:01:44 -05:00
88dc2681f6Make all tests pass the crash test and fix a few more bugs
James Long
2016-12-27 21:40:04 -05:00
9acd34d67dupdate snapshots
James Long
2016-12-27 13:29:31 -05:00
599e5821c1Optimize jest testing and implement more fixes
James Long
2016-12-27 13:28:04 -05:00
87f4a85edcInvoke JS API in tests instead of invoking executable every run
James Long
2016-12-23 21:12:18 -05:00
cfa14f07c3Merge pull request #1 from vjeux/jest-tests
James Long
2016-12-23 20:56:05 -05:00
cf45afba61Add testing
Christopher Chedeau
2016-12-23 19:31:38 +00:00
d5b07f5c3dFix readme
James Long
2016-12-23 13:40:43 -05:00
9b4535e9f8Merge in forked recast printer that uses Wadler's algorithm
James Long
2016-12-23 13:38:10 -05:00
35d8546d27Add Atom support
James Long
2016-11-30 10:02:23 -05:00
d8313b03ceAdd ability to call as API
James Long
2016-11-29 15:23:00 -05:00
49316b18ccAdd readme
James Long
2016-11-29 12:26:03 -05:00
cf4643896cadd emacs support
James Long
2016-11-29 12:22:51 -05:00
a2f231d0ebFix package.json
James Long
2016-11-29 12:19:53 -05:00
29627ee520initial
James Long
2016-11-29 12:14:10 -05:00