Skip to content

Instantly share code, notes, and snippets.

@burin
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burin/11386120 to your computer and use it in GitHub Desktop.
Save burin/11386120 to your computer and use it in GitHub Desktop.
Burin's JSCS Config
{
"excludeFiles": ["node_modules/**", "script/**", "wrapped/**", "mobile/libs/**"],
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
"disallowImplicitTypeConversion": ["string"],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowMixedSpacesAndTabs": "smart",
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
},
"validateQuoteMarks": "'",
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"disallowYodaConditions": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpaceBeforeBlockStatements": true,
"disallowTrailingCommas": true,
"validateIndentation": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment