Skip to content

Instantly share code, notes, and snippets.

@diegoaguilar
Created December 12, 2015 08:26
Show Gist options
  • Save diegoaguilar/59be60e506bb60b0ec39 to your computer and use it in GitHub Desktop.
Save diegoaguilar/59be60e506bb60b0ec39 to your computer and use it in GitHub Desktop.
JSCS config file
{
"requireSemicolons": true,
"validateQuoteMarks": "'",
"requirePaddingNewLinesAfterUseStrict": true,
"dissallowTrailingComma": true,
"disallowSpacesinFunction": true,
"maximumLineLength": 120,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"disallowMixedSpacesAndTabs": "smart",
"disallowEmptyBlocks": true,
"requireSpaceAfterLineComment": {
"allExcept": [
"#",
"="
]
},
"validateIndentation": {
"value": 2,
"allExcept": ["comments"]
},
"requireAlignedMultilineParams": true,
"validateParameterSeparator": ", ",
"requireSpaceBetweenArguments": true,
"requireSpaceAfterKeywords": [
"do",
"for",
"if",
"else",
//"switch",
"case",
"try",
"catch",
"void",
"while",
"with",
"return",
"typeof"
],
"requireSpaceBeforeBlockStatements": true,
"requireSpacesInConditionalExpression": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment