Skip to content

Instantly share code, notes, and snippets.

@charlieroberts
Created June 27, 2015 21:01
Show Gist options
  • Save charlieroberts/b18ace310c6a5ca127fd to your computer and use it in GitHub Desktop.
Save charlieroberts/b18ace310c6a5ca127fd to your computer and use it in GitHub Desktop.
style rules for use with jscs
{
"esnext": true,
"maximumLineLength": null,
"disallowTrailingWhitespace": null,
"requireSpacesInsideParentheses": {
"all": true,
"except": [ "{", "}" ]
},
"disallowSemicolons": true,
"validateQuoteMarks": { "mark": "'", "escape": true },
"requireSpacesInConditionalExpression": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceAfterObjectKeys": true,
"requireSpacesInsideObjectBrackets": "all",
"disallowNewlineBeforeBlockStatements": true,
"validateIndentation" : { "value": 2, "includeEmptyLines": false }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment