Commit Graph

111 Commits (3f949907a01825c16fbdf610799c0f9356bed77f)

Author SHA1 Message Date
James Long 3f949907a0 Merge pull request #72 from michaelficarra/GH-71
fixes #71: don't indent block statements which are children of case clauses
2017-01-10 18:56:50 -05:00
James Long d2d6def9be Revert "fixes #49: omit new parens when it has no arguments"
This reverts commit b5392f9468.
2017-01-10 18:53:03 -05:00
Michael Ficarra 0461b3e6cd fixes #71: don't indent block stmts which are children of case clauses 2017-01-10 15:26:12 -08:00
James Long e3b41dd6ca Merge pull request #57 from michaelficarra/GH-56
fixes #56: indent cases inside switch statements
2017-01-10 17:49:46 -05:00
James Long 6d39725d47 Merge pull request #51 from jlongster/update-babylon
Update options to babylon
2017-01-10 17:31:01 -05:00
James Long a061e96bbb Use latest version of babylon 2017-01-10 17:30:34 -05:00
James Long 56abf5fc46 Update options to babylon 2017-01-10 17:30:17 -05:00
James Long 5cb5148876 Merge pull request #64 from okonet/accept-globs
Accept globs and lists of files
2017-01-10 17:16:14 -05:00
James Long 321bd6a9fa Allow block-less arrow function expression to break (fixes #61) 2017-01-10 16:46:33 -05: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