Skip to content

Instantly share code, notes, and snippets.

@Gerst20051
Last active August 29, 2015 14:22
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 Gerst20051/14488a0de1ec065af4a8 to your computer and use it in GitHub Desktop.
Save Gerst20051/14488a0de1ec065af4a8 to your computer and use it in GitHub Desktop.
JavaScript Code Style .jscsrc
{
"disallowEmptyBlocks": true,
/*"disallowDanglingUnderscores": true,*/
"disallowKeywords": [
"with"
],
"disallowKeywordsOnNewLine": [
"else"
],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
/*"disallowMultipleVarDecl": true,*/
"disallowNewlineBeforeBlockStatements": true,
"disallowPaddingNewlinesInBlocks": true,
/*"disallowQuotedKeysInObjects": true,*/
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [
","
],
/*"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},*/
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
/*"disallowYodaConditions": true,*/
"excludeFiles": [
"bower_components/**",
"node_modules/**"
],
"fileExtensions": [
".js"
],
"maximumLineLength": {
"value": 300,
"allowComments": true
},
"requireBlocksOnNewline": 1,
/*"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",*/
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
/*"requireDotNotation": true,*/
"requireLineFeedAtFileEnd": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"case",
"return",
"try",
"catch",
"typeof"
],
/*"requireSpaceAfterLineComment": true,*/
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpacesInConditionalExpression": true,
"safeContextKeyword": ["_this", "that", "self", "fn"],
"validateLineBreaks": "LF",
/*"validateQuoteMarks": "'",*/
"validateIndentation": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment