Created
July 7, 2016 13:27
-
-
Save DStereo/174a2baf3759affdc9d79e1284c24904 to your computer and use it in GitHub Desktop.
jscs rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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