Skip to content

Instantly share code, notes, and snippets.

@earnubs
Created October 3, 2014 10:13
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 earnubs/a95642373d528a0003ec to your computer and use it in GitHub Desktop.
Save earnubs/a95642373d528a0003ec to your computer and use it in GitHub Desktop.
hinting and linting
{
"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
}
}
{
"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