Commit Graph

3253 Commits (d3a6495369779f75eebaa53e4c6005c24c5f497c)

Author SHA1 Message Date
Jeremy Morrell 9213d5ad7f First attempt at making union types prettier 2017-01-10 18:31:29 -03:00
James Long 4825e56227 Allow multiple nested arrow functions to be expanded as last call arg (fixes #65) 2017-01-10 16:20:24 -05:00
Andrey Okonetchnikov 0bf83e9b31 build: Add more scripts to test 2017-01-10 21:47:52 +01:00
Andrey Okonetchnikov 85dc8eb118 style: Run prettier on the source code 2017-01-10 21:47:52 +01:00
Andrey Okonetchnikov 1a77d072cc feature: Add support for passing multiple files
Fixes #58
2017-01-10 21:47:24 +01:00
Andrey Okonetchnikov 3b1762b3a9 chore: Added .js extension to ./bin/prettier 2017-01-10 21:45:51 +01:00
James Long c904281027 Remove use of `fromString(...).join` in a few places (fixes #52) 2017-01-10 15:28:28 -05:00
Michael Ficarra fc521c4d03 fixes #56: indent cases inside switch statements 2017-01-10 12:03:36 -08:00
James Long 0861f0a49b Merge pull request #41 from skratchdot/patch-1
Adding missing `source-map` and `private` to deps
2017-01-10 14:29:22 -05:00
James Long 4cdf226cf3 Merge pull request #50 from michaelficarra/GH-49
fixes #49: omit new parens when it has no arguments
2017-01-10 14:21:50 -05:00
Michael Ficarra b5392f9468 fixes #49: omit new parens when it has no arguments 2017-01-10 11:14:39 -08:00
skratchdot 95fc194c97 Adding missing `source-map` and `private` to deps 2017-01-10 13:22:11 -05:00
James Long 6d6d53f6df v0.0.3 2017-01-10 12:18:37 -05:00
James Long 4abb8ce544 Support back to node v4 2017-01-10 12:18:22 -05:00
James Long 9a781cbcff Tweak warning in readme 2017-01-10 12:09:06 -05:00
James Long e2dafb4f28 Merge pull request #11 from demoneaux/fix-tests
Fix tests for Windows.
2017-01-10 12:07:10 -05:00
James Long 0ba4d71c5c Add link to blog post 2017-01-10 10:33:54 -05:00
Benjamin Tan e72347e51b Fix tests on Windows.
Convert CRLF into LF for Jest’s snapshot matching.
2017-01-10 22:34:24 +08:00
Benjamin Tan 258575af9a Make `testRegex` Jest config a string instead of array.
Ref. https://facebook.github.io/jest/docs/configuration.html#testregex-string.

Closes #10.
2017-01-10 22:29:52 +08:00
James Long 14f8161c32 Add language support to readme 2017-01-10 09:06:50 -05:00
James Long 14325b1532 Add MIT license 2017-01-10 09:06:32 -05:00
James Long 50f898dc4a Acknowledge refmt 2017-01-10 01:02:39 -05:00
James Long 92b3ecfd6b Final readme tweaks 2017-01-10 01:00:02 -05:00
James Long 47c9b50f48 More docs 2017-01-10 00:52:52 -05:00
James Long 612e3411cb Move atom package out and start new readme 2017-01-10 00:45:11 -05:00
James Long b553718aee Fix up atom package 2017-01-09 23:44:12 -05:00
James Long dd8dda101d Update atom package 2017-01-09 23:27:17 -05:00
James Long a0edc2a520 Document more CLI flags in usage text 2017-01-09 23:22:58 -05:00
James Long 2e4eb91edc Improve CLI command 2017-01-09 23:03:35 -05:00
James Long 7639b755c2 More renaming of jscodefmt -> prettier 2017-01-09 22:48:56 -05:00
James Long 79e222bb53 Rename to `prettier` 2017-01-09 22:45:22 -05:00
James Long a4643f1bae Add special case for comment at top of file; regenerate snapshots 2017-01-09 21:49:26 -05:00
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