Skip to content

Instantly share code, notes, and snippets.

@DStereo
Created July 7, 2016 13:27
Show Gist options
  • Save DStereo/174a2baf3759affdc9d79e1284c24904 to your computer and use it in GitHub Desktop.
Save DStereo/174a2baf3759affdc9d79e1284c24904 to your computer and use it in GitHub Desktop.
jscs rules
{
"disallowEmptyBlocks": true,
"disallowKeywords": [
"with",
"void"
],
"disallowNestedTernaries": true,
"disallowSpaceBeforeSemicolon": true,
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"disallowTabs": true,
"requireSpaceAfterComma": true,
"requireSpaceAfterKeywords": [
"do",
"for",
"if",
"else",
"switch",
"case",
"try",
"catch",
"while",
"typeof"
],
"requireSpaceBeforeKeywords": [
"else",
"while",
"catch"
],
"requireSemicolons": true,
"requireSpacesInForStatement": true,
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"validateIndentation": 4,
"validateQuoteMarks": "'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment