Commit Graph
100 Commits
Author SHA1 Message Date
James Long 9a5b447c7f Propagate hard breaks within member expressions (fixes #1117) (#1193) 2017-04-12 09:26:27 -07:00
James Long eeae443b43 Separate if and else groups (fixes #616) (#1032) 2017-03-17 14:02:35 -07:00
James Long cea254857a Eagerly evaluate ifBreak when processing template literals (fixes #795) (#798) 2017-02-23 21:21:13 -08:00
James Long 5f78e78081 Do not format template literals (#749) 2017-02-23 09:00:29 -08:00
James Long 77f6f4de68 Add note about trailingComma option in versions 0.18.0 and below 2017-02-20 09:33:22 -05:00
James Long 9399c1b656 Update README with valid trailingComma options 2017-02-18 08:58:34 -05:00
James Long 5d131027ce Make trailing-comma option support 2 different modes (#641)
* Make trailing-comma option support 2 different modes

* Add deprecation warning

* Add deprecation warning to API
2017-02-17 22:44:55 -05:00
James Long 05637a73d3 Update snapshots 2017-02-07 12:15:36 -05:00
James Long 2ff937acdd Fix formatting in readme 2017-02-07 10:42:54 -05:00
James Long a3a6834a05 Expand vim instructions 2017-02-07 10:42:18 -05:00
James Long aaea8b1150 Simplify arrow functions that use blocks (fixes #268) (#496) 2017-01-27 13:39:17 -05:00
James Long eaddd4b3e6 Refactor comment algorithm and improve newline/spaces detection (fixes #483, #275, #135, #78, #36) (#482) 2017-01-26 11:57:43 -08:00
James Long f8f0b340e0 Update lockfile 2017-01-24 18:18:36 -05:00
James Long f6708a5cca Fix integer CLI arguments (#452) 2017-01-24 16:07:05 -05:00
James Long 45f1dc8a01 Update snapshots 2017-01-24 14:24:14 -05:00
James Long 3aa267d5e8 Remove multilineGroup (#450) 2017-01-24 13:54:01 -05:00
James Long cd2f7393ef Propagate breaks upwards automatically, introduce breakParent, and deprecate multilineGroup (#440) 2017-01-23 18:47:11 -05:00
James Long 6e57b7f2dd Print dangling comments in blocks (#331) 2017-01-19 14:46:37 -05:00
James Long 9939ca7318 Tweak 0.0.0 changelog link to use version tags 2017-01-18 20:51:24 -05:00
James Long a7405257ac Print binary and logical expressions in a nicer format (#262)
* Print binary and logical expressions in a nicer format (fixes #89)

* Improve algorithm (wip)

* Change grouping

* Final (hopefully?) pass at binary/logical expressions

* Update snapshots

* Add tests
2017-01-18 17:01:17 -05:00
James Long 8229355508 Fix path when printing member chains so parens work properly (fixes #243) (#281) 2017-01-17 22:39:47 -05:00
James Long 6f2b01193f Update live editor to 0.0.8 2017-01-17 11:00:02 -05:00
James Long dd156c28b2 Update changelog for 0.0.8 2017-01-17 10:37:06 -05:00
James Long bc5392c2a6 v0.0.8 2017-01-17 10:31:47 -05:00
James Long 2ff1ba8494 Consolidate badges in readme 2017-01-16 10:08:06 -05:00
James Long 7f80d8dbff Add note about Sublime Test github issue in readme 2017-01-14 23:21:58 -05:00
James Long 60c0b52fed Update live editor to 0.0.7 2017-01-13 23:33:38 -05:00
James Long e447971612 v0.0.7 2017-01-13 23:27:49 -05:00
James Long 3713408871 Update live editor to 0.0.6 2017-01-13 15:40:22 -05:00
James Long 4ffdb0c43f Improve CHANGELOG format again 2017-01-13 15:13:30 -05:00
James Long 2ab030b1d2 Fix CHANGELOG format 2017-01-13 15:10:21 -05:00
James Long 7e3161096b v0.0.6 2017-01-13 15:09:37 -05:00
James Long 3af7da5748 Reprint all the files! 2017-01-13 15:03:53 -05:00
James Long 6be89286bb Wrap ForStatement in a block for const decls (#172) 2017-01-13 14:57:46 -05:00
James Long 31a07feb84 Remove leftover arrowParensAlways option (#171) 2017-01-13 14:18:42 -05:00
James Long fb9c1e8098 Fix misprinting of computed properties in method chains. (#157)
* Fix misprinting of computed properties in method chains.

Closes #23, #94.

* Fix snapshot conflict
2017-01-12 15:06:44 -05:00
James Long ab37f7fd02 Merge pull request #156 from jlongster/break-imports-exports
Break long `exports` into multiple lines.
2017-01-12 15:00:00 -05:00
James Long aab300844f Use group instead of conditionalGroup 2017-01-12 14:53:12 -05:00
James Long bbe2524dab Merge pull request #134 from vjeux/generics
Support method generics on babylon parser
2017-01-12 13:50:10 -05:00
James Long a1d9d2a02f Merge pull request #142 from vjeux/minimize_quotes
Minimize string escapes
2017-01-12 13:39:17 -05:00
James Long d25881530f Merge pull request #126 from vjeux/jsx_quotes
Always use double quotes for JSX and properly escape
2017-01-12 10:30:42 -05:00
James Long d2318cf283 Merge pull request #128 from stakodiak/patch-1
Fix typo in README.
2017-01-12 10:30:02 -05:00
James Long 809aabc3bd Merge pull request #133 from vjeux/generic_babylon
Support type annotation for rest argument on babylon parser
2017-01-12 10:28:57 -05:00
James Long d5a27090e4 Merge pull request #138 from tjefferson08/tj_no_infc_decf
Emacs library fix: use `setq' instead of `infc' and `decf'
2017-01-12 10:26:58 -05:00
James Long 00fbf8c1bf Merge pull request #153 from jlongster/tweak-test-runner
Fix old name reference in tests_config
2017-01-12 10:14:58 -05:00
James Long 62bfdcd65a Fix old name reference in tests_config 2017-01-12 10:09:13 -05:00
James Long ea084dcd59 Merge pull request #125 from hzoo/update-deps
Update deps
2017-01-12 10:06:58 -05:00
James Long 6432034ed4 Merge pull request #148 from sapegin/patch-1
Add title and encoding to the REPL
2017-01-12 10:03:24 -05:00
James Long 1ccf6b0344 Merge pull request #90 from bakkot/property-names
Fix #79: omit unnecessary quotes in property names
2017-01-12 09:11:36 -05:00
James Long be6e92f064 Merge pull request #122 from vjeux/browser
Add prettier-browser
2017-01-11 14:26:51 -05:00
James Long 3126e463d7 Merge pull request #124 from jlongster/mark-0.0.5
v0.0.5 -- Accidentally didn't push this commit out before others land…
2017-01-11 14:25:59 -05:00
James Long b9cf404631 v0.0.5 -- Accidentally didn't push this commit out before others landed; 0.0.5 is actually based on commit faed09ceea 2017-01-11 14:09:30 -05:00
James Long 0eda44405b Merge pull request #119 from esbenp/add-visual-studio-code-plugin
add instructions for Visual Studio plugin
2017-01-11 12:11:04 -05:00
James Long 250d6d88dd Merge pull request #109 from dinoboff/patch-1
chore: link prettier package to its github project
2017-01-11 12:09:23 -05:00
James Long b936c653c7 Merge pull request #117 from knowbody/patch-1
add gitter badge to readme
2017-01-11 12:02:39 -05:00
James Long c8f671236c Merge pull request #116 from knowbody/remove-node-0-10-support
remove node 0.10 from travis config, add travis badge to readme
2017-01-11 11:57:19 -05:00
James Long 466d8509af Update snapshots 2017-01-11 11:54:28 -05:00
James Long faed09ceea Merge pull request #111 from knowbody/add-travis
add travis config and add yarn support
2017-01-11 11:36:16 -05:00
James Long ac6cb883c8 Merge pull request #113 from fortes/master
Enable reading from stdin
2017-01-11 11:29:50 -05:00
James Long 722e5b4477 Merge pull request #114 from dinoboff/docs-update-usage
docs: add globbing example
2017-01-11 11:28:06 -05:00
James Long 6557bc76b3 Merge pull request #107 from demoneaux/arrow-function-trailing-whitespace
Remove trailing whitespace in broken arrow function expressions.
2017-01-11 10:50:47 -05:00
James Long 83c378e8e8 Merge pull request #84 from vjeux/print_filename
Log the filename when --write is being used
2017-01-11 10:49:47 -05:00
James Long fd852320ce Merge pull request #86 from vjeux/dont_fatal
Do not fatal when formatting throws
2017-01-11 10:42:36 -05:00
James Long 7a84cdbc34 Merge pull request #97 from dtinth/patch-1
Add missing comma in API example
2017-01-11 10:20:54 -05:00
James Long c2458e7dc9 Merge pull request #106 from demoneaux/fix-directives-newlines
Fix misprinting of directives.
2017-01-11 10:20:09 -05:00
James Long 00fad62c91 Regenerate snapshots 2017-01-11 10:16:38 -05:00
James Long 944659194b Merge pull request #105 from demoneaux/fix-eof
Add newline to EOF.
2017-01-11 10:15:15 -05:00
James Long 2d99f5d281 Merge pull request #101 from demoneaux/export-semicolons
Add semicolons to `export` declarations.
2017-01-11 09:59:42 -05:00
James Long b37e8c4b36 v0.0.4 2017-01-10 23:52:36 -05:00
James Long 10a8cd9122 Merge pull request #45 from danharper/fix38
Print Flow types with no name (fixes #38)
2017-01-10 23:51:42 -05:00
James Long 34dc37a816 Merge pull request #67 from jmorrell/flow-type-declarations
Make union types pretty again
2017-01-10 23:38:27 -05:00
James Long d93e7d2f24 Merge pull request #70 from danharper/fix24
Fix import & export bracket spacing (fixes #24)
2017-01-10 23:36:59 -05:00
James Long f11d86b73f Merge pull request #75 from azu/patch-1
Add syntax highlight to example in README
2017-01-10 23:36:35 -05:00
James Long 6b26c1ab3e Merge pull request #76 from kalmanb/emacs-typos
Fix up emacs typos
2017-01-10 23:36:03 -05:00
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
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
James Long c904281027 Remove use of fromString(...).join in a few places (fixes #52) 2017-01-10 15:28:28 -05: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
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
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