2013-12-06 02:34:44 +00:00
|
|
|
{
|
2014-05-15 16:12:43 +00:00
|
|
|
"requireCurlyBraces": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"do",
|
|
|
|
"try",
|
|
|
|
"catch"
|
|
|
|
],
|
|
|
|
"requireSpaceAfterKeywords": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"do",
|
|
|
|
"switch",
|
|
|
|
"return",
|
|
|
|
"try",
|
|
|
|
"catch",
|
|
|
|
"function"
|
|
|
|
],
|
|
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
|
|
"requireParenthesesAroundIIFE": true,
|
|
|
|
"requireSpacesInConditionalExpression": true,
|
|
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
|
|
"beforeOpeningRoundBrace": true
|
2013-12-06 02:34:44 +00:00
|
|
|
},
|
2014-05-15 16:12:43 +00:00
|
|
|
"disallowSpacesInFunctionDeclaration": {
|
|
|
|
"beforeOpeningRoundBrace": true
|
|
|
|
},
|
|
|
|
"requireMultipleVarDecl": "onevar",
|
|
|
|
"requireBlocksOnNewline": 1,
|
|
|
|
"disallowEmptyBlocks": true,
|
2013-12-06 02:34:44 +00:00
|
|
|
"requireSpacesInsideObjectBrackets": "all",
|
2014-05-15 16:12:43 +00:00
|
|
|
"disallowDanglingUnderscores": true,
|
2013-12-06 02:34:44 +00:00
|
|
|
"disallowSpaceAfterObjectKeys": true,
|
2014-05-15 16:12:43 +00:00
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": [
|
|
|
|
"++",
|
|
|
|
"--",
|
|
|
|
"+",
|
|
|
|
"-",
|
|
|
|
"~",
|
|
|
|
"!"
|
|
|
|
],
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": [
|
|
|
|
"++",
|
|
|
|
"--"
|
|
|
|
],
|
|
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
|
|
","
|
|
|
|
],
|
|
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
|
|
"=",
|
|
|
|
"+",
|
|
|
|
"-",
|
|
|
|
"/",
|
|
|
|
"*",
|
|
|
|
"==",
|
|
|
|
"===",
|
|
|
|
"!=",
|
|
|
|
"!==",
|
|
|
|
">",
|
|
|
|
">=",
|
|
|
|
"<",
|
|
|
|
"<="
|
|
|
|
],
|
|
|
|
"requireSpaceAfterBinaryOperators": [
|
|
|
|
"=",
|
|
|
|
"+",
|
|
|
|
"-",
|
|
|
|
"/",
|
|
|
|
"*",
|
|
|
|
"==",
|
|
|
|
"===",
|
|
|
|
"!=",
|
|
|
|
"!==",
|
|
|
|
">",
|
|
|
|
">=",
|
|
|
|
"<",
|
|
|
|
"<="
|
|
|
|
],
|
|
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
2013-12-06 02:34:44 +00:00
|
|
|
"disallowKeywords": [ "with" ],
|
|
|
|
"disallowMultipleLineBreaks": true,
|
|
|
|
"validateLineBreaks": "LF",
|
2014-05-15 16:12:43 +00:00
|
|
|
"validateQuoteMarks": "'",
|
|
|
|
"disallowMixedSpacesAndTabs": true,
|
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"disallowTrailingComma": true,
|
2013-12-06 02:34:44 +00:00
|
|
|
"disallowKeywordsOnNewLine": ["else"],
|
2014-05-15 16:12:43 +00:00
|
|
|
"requireLineFeedAtFileEnd": true,
|
|
|
|
"requireCapitalizedConstructors": true,
|
|
|
|
"requireDotNotation": true,
|
|
|
|
"disallowYodaConditions": true
|
2013-12-06 02:34:44 +00:00
|
|
|
}
|