Skip to content

Instantly share code, notes, and snippets.

@BBB
Created March 31, 2014 09:14
Show Gist options
  • Save BBB/9888469 to your computer and use it in GitHub Desktop.
Save BBB/9888469 to your computer and use it in GitHub Desktop.
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"requireSpaceBeforeBinaryOperators": [
"+",
"-",
"/",
"*",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"requireLeftStickedOperators": [
","
],
"requireSpaceAfterBinaryOperators": [
"+",
"-",
"/",
"*",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"disallowSpaceAfterPrefixUnaryOperators": [
"++",
"--",
"+",
"-",
"~",
"!"
],
"disallowSpaceBeforePostfixUnaryOperators": [
"++",
"--"
],
"disallowLeftStickedOperators": [
"?",
"="
],
"disallowRightStickedOperators": [
"?",
":",
"="
],
"disallowKeywordsOnNewLine": [
"else"
],
"requireParenthesesAroundIIFE": true,
"disallowEmptyBlocks": true,
"requireSpacesInsideObjectBrackets": "all",
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"disallowMultipleLineBreaks": true,
"validateQuoteMarks": "'",
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"excludeFiles": [
"./node_modules/**",
"./dist/**",
"./client/vendor/"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment