2015-07-16 16:59:09 -04:00
|
|
|
{
|
|
|
|
"maximumLineLength": {
|
|
|
|
"value": 140,
|
|
|
|
"allowComments": true
|
|
|
|
},
|
|
|
|
"requireCurlyBraces": [
|
|
|
|
"for",
|
|
|
|
"do",
|
|
|
|
"try",
|
|
|
|
"catch"
|
|
|
|
],
|
|
|
|
"requireSpaceAfterKeywords": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"do",
|
|
|
|
"switch",
|
|
|
|
"case",
|
|
|
|
"return",
|
|
|
|
"try",
|
|
|
|
"catch",
|
|
|
|
"function",
|
|
|
|
"typeof"
|
|
|
|
],
|
|
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
|
|
"requireParenthesesAroundIIFE": true,
|
|
|
|
"requireSpacesInConditionalExpression": true,
|
|
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
|
|
"beforeOpeningRoundBrace": true
|
|
|
|
},
|
|
|
|
"disallowSpacesInFunctionDeclaration": {
|
|
|
|
"beforeOpeningRoundBrace": true
|
|
|
|
},
|
|
|
|
"requireSpaceBetweenArguments": true,
|
|
|
|
"disallowMultipleVarDecl": "exceptUndefined",
|
|
|
|
"disallowEmptyBlocks": true,
|
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
|
|
","
|
|
|
|
],
|
|
|
|
"requireSpacesInForStatement": true,
|
|
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
|
|
"disallowKeywords": [
|
|
|
|
"with"
|
|
|
|
],
|
|
|
|
"validateIndentation": 2,
|
|
|
|
"validateQuoteMarks": { "mark": "'", "escape": true },
|
|
|
|
"disallowMixedSpacesAndTabs": true,
|
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"requireCapitalizedConstructors": true,
|
|
|
|
"requireDotNotation": true,
|
|
|
|
"disallowNewlineBeforeBlockStatements": true,
|
2015-07-17 19:32:40 -04:00
|
|
|
"disallowMultipleLineStrings": true,
|
|
|
|
"esprima" : "esprima-fb"
|
2015-07-16 16:59:09 -04:00
|
|
|
}
|