Last active
August 29, 2015 14:06
-
-
Save bryanforbes/f5f6c13824e0237817de to your computer and use it in GitHub Desktop.
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
{ | |
"requireCurlyBraces": [ | |
"if", "else", "for", "while", "do", "try", | |
"catch" | |
], | |
"requireSpaceAfterKeywords": [ | |
"if", "else", "for", "while", "do", "switch", | |
"return", "try", "catch" | |
], | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireSpacesInConditionalExpression": true, | |
"requireSpacesInAnonymousFunctionExpression": { | |
"beforeOpeningRoundBrace": true, | |
"beforeOpeningCurlyBrace": true | |
}, | |
"requireSpacesInNamedFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInNamedFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"requireSpacesInFunctionDeclaration": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunctionDeclaration": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"disallowMultipleVarDecl": true, | |
"requireBlocksOnNewline": true, | |
"disallowEmptyBlocks": true, | |
"requireSpacesInsideObjectBrackets": "allButNested", | |
"requireSpacesInsideArrayBrackets": "allButNested", | |
"disallowQuotedKeysInObjects": "allButReserved", | |
"disallowSpaceAfterObjectKeys": true, | |
"requireCommaBeforeLineBreak": true, | |
"requireOperatorBeforeLineBreak": true, | |
"disallowSpaceAfterPrefixUnaryOperators": true, | |
"disallowSpaceBeforePostfixUnaryOperators": true, | |
"requireSpaceBeforeBinaryOperators": true, | |
"requireSpaceAfterBinaryOperators": true, | |
"disallowImplicitTypeConversion": [ | |
"binary" | |
], | |
"requireCamelCaseOrUpperCaseIdentifiers": true, | |
"disallowKeywords": [ | |
"with" | |
], | |
"disallowMultipleLineStrings": true, | |
"disallowMultipleLineBreaks": true, | |
"validateQuoteMarks": { | |
"mark": "'", | |
"escape": true | |
}, | |
"validateIndentation": "\t", | |
"disallowMixedSpacesAndTabs": "smart", | |
"disallowTrailingWhitespace": true, | |
"disallowTrailingComma": true, | |
"requireKeywordsOnNewLine": [ | |
"else" | |
], | |
"requireLineFeedAtFileEnd": true, | |
"maximumLineLength": 120, | |
"requireCapitalizedConstructors": true, | |
"requireDotNotation": true, | |
"disallowYodaConditions": true, | |
"requireSpaceAfterLineComment": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the suggestions, Ken. I have updated them all except for the following:
"disallowMultipleLineBreaks": true
before removing it."validateLineBreaks": "LF"
.Some other comments:
"disallowSpaceBeforeBinaryOperators": [ ":" ]
rule was to get around a bug in jscs which has since been fixed.escape: true
forvalidateQuoteMarks
was for locale strings.Once the two issues you noted get resolved, I think this config file is good to go.