Skip to content

Instantly share code, notes, and snippets.

@lvivier
Created August 27, 2015 17:30
Show Gist options
  • Save lvivier/3960fc90ce2ba78c2878 to your computer and use it in GitHub Desktop.
Save lvivier/3960fc90ce2ba78c2878 to your computer and use it in GitHub Desktop.
hint files
{
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": {
"allExcept": ["undefined"]
},
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["."],
"disallowPaddingNewlinesInBlocks": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceBeforeComma": true,
"disallowSpaceBeforeSemicolon": true,
"disallowTrailingComma": true,
"jsDoc": {
"checkAnnotations": {
"preset": "jsdoc3",
"extra": {"api": "some"}
},
"checkParamNames": true,
"checkRedundantReturns": true,
"checkReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"leadingUnderscoreAccess": "private",
"requireNewlineAfterDescription": true,
"requireParamTypes": true
},
"maximumLineLength": {
"value": 80,
"allExcept": ["regex"]
},
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCommaBeforeLineBreak": true,
"requireDotNotation": {
"allExcept": ["snake_case"]
},
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireSemicolons": true,
"requireSpaceAfterKeywords": ["do", "for", "if", "else", "typeof"],
"requireSpaceAfterLineComment": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"validateAlignedFunctionParameters": true,
"validateIndentation": 2,
"validateNewlineAfterArrayElements": 8,
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'"
}
{
"asi": false,
"forin": false,
"freeze": true,
"funcscope": true,
"globals": {
"window": false,
"document": false
},
"indent": 2,
"latedef": "nofunc",
"laxcomma": true,
"maxcomplexity": 10,
"maxdepth": 3,
"maxparams": 5,
"maxstatements": 20,
"mocha": true,
"newcap": true,
"noarg": true,
"node": true,
"nonew": true,
"undef": true,
"unused": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment