Skip to content

Instantly share code, notes, and snippets.

@mattbontrager
Last active August 29, 2017 23:05
Show Gist options
  • Save mattbontrager/9b5a1827fb8fa4103e5e7197d71db267 to your computer and use it in GitHub Desktop.
Save mattbontrager/9b5a1827fb8fa4103e5e7197d71db267 to your computer and use it in GitHub Desktop.
my jscsrc template
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"case",
"try",
"catch",
"typeof"
],
"requireSpacesInFunctionExpression": false,
"requireSpacesInForStatement": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"disallowKeywords": ["with"],
"requireLineFeedAtFileEnd": false,
"validateLineBreaks": "LF",
"validateIndentation": "\t",
"requireSpaceAfterPrefixUnaryOperators": false,
"requireSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": false,
"requireSpaceAfterBinaryOperators": false,
"disallowSpaceBeforeBinaryOperators": [","],
"requireSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"beforeAlternate": true
},
"disallowSpacesInConditionalExpression": {
"afterConsequent": true
},
"disallowTrailingWhitespace": true,
"disallowNewlineBeforeBlockStatements": true,
"requireSpaceBeforeBlockStatements": false,
"requirePaddingNewlinesInBlocks": false,
"requireSpacesInsideParentheses": false,
"requireParenthesesAroundIIFE": true,
"requireMultipleVarDecl": {
"allExcept": "['require']"
},
"requirePaddingNewlinesInBlocks": false,
"requireSpacesInsideParentheses": false,
"requireCapitalizedConstructors": true,
"safeContextKeyword": ["self"],
"requireDotNotation": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment