Skip to content

Instantly share code, notes, and snippets.

@mattyod
Last active July 19, 2016 19:33
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 mattyod/40260484ccdac7c500a5 to your computer and use it in GitHub Desktop.
Save mattyod/40260484ccdac7c500a5 to your computer and use it in GitHub Desktop.
JSCS
{
"requireCamelCaseOrUpperCaseIdentifiers" : "ignoreProperties",
"requireParenthesesAroundIIFE" : true,
"requireCapitalizedConstructors" : true,
"disallowEmptyBlocks" : true,
"requireDotNotation" : true,
"requireCurlyBraces" : ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords" : ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireMultipleVarDecl": "onevar",
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideParentheses" : true,
"requireSpacesInsideObjectBrackets" : "allButNested",
"disallowSpaceAfterObjectKeys" : true,
"requireSpaceBeforeBinaryOperators" : ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceAfterBinaryOperators" : ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"disallowSpaceAfterPrefixUnaryOperators" : ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators" : ["++", "--"],
"disallowKeywords" : ["with"],
"disallowMultipleLineBreaks" : true,
"validateLineBreaks" : "LF",
"disallowNewlineBeforeBlockStatements" : true,
"disallowKeywordsOnNewLine" : ["else"],
"validateIndentation" : 2,
"validateQuoteMarks" : "'",
"disallowMixedSpacesAndTabs" : true,
"disallowTrailingWhitespace" : true,
"requireLineFeedAtFileEnd" : true,
"maximumLineLength" : 120,
"validateJSDoc" : {},
"excludeFiles" : ["node_modules/**"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment