Skip to content

Instantly share code, notes, and snippets.

@sydlawrence
Created August 26, 2014 07:50
Show Gist options
  • Save sydlawrence/cce66361a0663d8bc24d to your computer and use it in GitHub Desktop.
Save sydlawrence/cce66361a0663d8bc24d to your computer and use it in GitHub Desktop.
.jscs.json
{
"requireCapitalizedConstructors": true,
"requireMultipleVarDecl": true,
"disallowEmptyBlocks": true,
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireParenthesesAroundIIFE": true,
"disallowKeywords": [
"with"
],
"disallowMultipleLineBreaks": true,
"validateQuoteMarks": {"mark": "'", "escape": true},
"validateIndentation": 2,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"safeContextKeyword": "_this",
"requireKeywordsOnNewLine": [
"else"
],
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"default"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"disallowLeftStickedOperators": [
"?",
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"disallowRightStickedOperators": [
"?",
"+",
"/",
"*",
":",
"=",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"requireSpaceBeforeBinaryOperators": [
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!=="
],
"requireSpaceAfterBinaryOperators": [
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!=="
],
"validateJSDoc": {
"checkParamNames": true,
"checkRedundantParams": true,
"requireParamTypes": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment