Last active
August 29, 2015 14:22
-
-
Save Gerst20051/14488a0de1ec065af4a8 to your computer and use it in GitHub Desktop.
JavaScript Code Style .jscsrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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