Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created February 17, 2015 03:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcomnes/8cba8a9253e47fdb2958 to your computer and use it in GitHub Desktop.
Save bcomnes/8cba8a9253e47fdb2958 to your computer and use it in GitHub Desktop.
jsfmt.sublime-settings
{
// autoformat on save
"autoformat": true,
// array of extensions for autoformat
"extensions": ["js", "sublime-settings"],
// options for jsfmt
"options": {
"preset": "default",
"indent": {
"value": " "
},
// plugins included
"plugins": [
//"esformatter-quotes",
// "esformatter-semicolons",
//"esformatter-braces",
//"esformatter-dot-notation"
],
"whiteSpace": {
"before": {
},
"after": {
"FunctionName": 1,
}
},
"lineBreak": {
"before": {
"IfStatementOpeningBrace": -1,
"ThrowStatement": -1
},
"after": {
"IfStatementClosingBrace": -1
}
}
},
"options-JSON": {
"plugins": [
"esformatter-quotes"
],
"quotes": {
"type": "double"
}
},
"node-path": "node",
"alert-errors": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment