Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upauto-style as much as possible with jsbeautifier #7
Comments
This comment has been minimized.
This comment has been minimized.
|
Alternatively there's also esformatter which is used in the rdio/jsfmt project. |
This comment has been minimized.
This comment has been minimized.
|
maxogden/standard-format now exists. PR's are welcome. |
This comment has been minimized.
This comment has been minimized.
|
Was able to get a compatible auto format with jsfmt. |
This comment has been minimized.
This comment has been minimized.
|
@bcomnes do you have a .jsfmtrc file handy with everything defined? |
This comment has been minimized.
This comment has been minimized.
|
https://gist.github.com/bcomnes/8cba8a9253e47fdb2958 I use it from within sublime, bit it could be adapted to a .jsfmtrc pretty quickly. Its not perfect but provides an okay auto format that doesn't collide with standard. |
feross
added a commit
that referenced
this issue
Feb 17, 2015
This comment has been minimized.
This comment has been minimized.
|
First pass at a Please try it and give feedback / improve it. |
This comment has been minimized.
This comment has been minimized.
|
I'll find some time to play with this tomorrow :) |
This comment has been minimized.
This comment has been minimized.
|
awesome! |
This comment has been minimized.
This comment has been minimized.
|
Just |
feross
closed this
Feb 19, 2015
This comment has been minimized.
This comment has been minimized.
|
Cool! @Flet Do you know how to turn this into a sublime plugin? |
This comment has been minimized.
This comment has been minimized.
|
Yeah they have some excellent docs on how to do it here: Its really geared for outputting errors from pure linters, but it certainly could be used to trigger a formatter too... I'd love for there to eventually be a |
This comment has been minimized.
This comment has been minimized.
|
@Flet No time right now, but I'd accept a PR that added a |
mvayngrib commentedJan 27, 2015
to make it as easy as possible to adhere to this style for the devs