Skip to content

Instantly share code, notes, and snippets.

@kokarn

kokarn/.jscsrc Secret

Created August 28, 2015 13:08
Show Gist options
  • Save kokarn/d41147c9526b5933c538 to your computer and use it in GitHub Desktop.
Save kokarn/d41147c9526b5933c538 to your computer and use it in GitHub Desktop.
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireOperatorBeforeLineBreak": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"validateIndentation": 4,
"validateQuoteMarks": "'",
"disallowMultipleLineStrings": true,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"disallowKeywordsOnNewLine": [
"else"
],
"requireSpaceAfterKeywords": [
"return"
],
"requireMultipleVarDecl": "onevar",
"requireSpaceBeforeBinaryOperators": [
"=",
"+=",
"-=",
"*=",
"/=",
"%=",
"<<=",
">>=",
">>>=",
"&=",
"|=",
"^=",
"+=",
"+",
"-",
"*",
"/",
"%",
"<<",
">>",
">>>",
"&",
"|",
"^",
"&&",
"||",
"===",
"==",
">=",
"<=",
"<",
">",
"!=",
"!=="
],
"requireSpaceBetweenArguments": true,
"requireSpacesInsideArrayBrackets": "all",
"requireSpacesInsideBrackets": {
"allExcept": [
"[",
"]",
"{",
"}",
"(",
")"
]
},
"requireSpacesInsideObjectBrackets": {
"allExcept": [
"[",
"]",
"{",
"}",
"(",
")"
]
},
"requireSpaceAfterBinaryOperators": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"requireSpacesInsideParentheses": {
"all": true,
"except": [
"(",
")",
"{",
"}"
]
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpacesInCallExpression": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleSpaces": true,
"disallowNewlineBeforeBlockStatements": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment