Created
July 16, 2015 02:32
-
-
Save fredchu/f05f41114d31d8562a7a to your computer and use it in GitHub Desktop.
My JSCS config
This file contains hidden or 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
{ | |
"preset": "airbnb", | |
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ], | |
"requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return" ], | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowMultipleVarDecl": true, | |
"disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ], | |
"disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | |
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], | |
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-"], | |
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], | |
"requireRightStickedOperators": [ "!" ], | |
"requireLeftStickedOperators": [ "," ], | |
"disallowKeywords": [ "with" ], | |
"disallowMultipleLineBreaks": true, | |
"disallowKeywordsOnNewLine": [ "else" ], | |
"requireLineFeedAtFileEnd": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"validateLineBreaks": "LF", | |
"validateIndentation": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment