Created
October 3, 2014 10:13
-
-
Save earnubs/a95642373d528a0003ec to your computer and use it in GitHub Desktop.
hinting and linting
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
{ | |
"requireSpaceAfterKeywords": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"switch", | |
"return", | |
"try", | |
"catch" | |
], | |
"requirePaddingNewlinesInBlocks": true, | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true, | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowMultipleVarDecl": true, | |
"requireBlocksOnNewline": true, | |
"disallowEmptyBlocks": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"requireCommaBeforeLineBreak": true, | |
"disallowMixedSpacesAndTabs": true, | |
"disallowTrailingWhitespace": true, | |
"disallowTrailingComma": true, | |
"disallowKeywordsOnNewLine": ["else"], | |
"requireCapitalizedConstructors": true, | |
"disallowYodaConditions": true, | |
"validateJSDoc": { | |
"checkParamNames": true, | |
"checkRedundantParams": true, | |
"requireParamTypes": true | |
} | |
} |
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
Show hidden characters
{ | |
"expr": true, | |
"predef": [ | |
"document", | |
"window", | |
"module", | |
"YUI", | |
"before", | |
"beforeEach", | |
"after", | |
"afterEach", | |
"describe", | |
"expect", | |
"it", | |
"sinon" | |
], | |
"undef": true, | |
"unused": true, | |
"strict": true, | |
"trailing": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment