2015-01-19 22:53:53 +08:00
|
|
|
{
|
2015-01-19 23:43:47 +08:00
|
|
|
"validateIndentation": 2,
|
2015-01-19 22:53:53 +08:00
|
|
|
"requireCurlyBraces": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"do",
|
|
|
|
"try",
|
|
|
|
"catch"
|
|
|
|
],
|
|
|
|
"requireOperatorBeforeLineBreak": true,
|
|
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
|
|
"validateIndentation": 2,
|
|
|
|
"validateQuoteMarks": "'",
|
|
|
|
"disallowMultipleLineStrings": true,
|
|
|
|
"disallowMixedSpacesAndTabs": true,
|
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
|
|
"requireMultipleVarDecl": true,
|
|
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
|
|
"requireSpaceAfterKeywords": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"do",
|
|
|
|
"switch",
|
|
|
|
"return",
|
|
|
|
"try",
|
|
|
|
"catch"
|
|
|
|
],
|
|
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
|
|
"=",
|
|
|
|
"+=",
|
|
|
|
"-=",
|
|
|
|
"*=",
|
|
|
|
"/=",
|
|
|
|
"%=",
|
|
|
|
"<<=",
|
|
|
|
">>=",
|
|
|
|
">>>=",
|
|
|
|
"&=",
|
|
|
|
"|=",
|
|
|
|
"^=",
|
|
|
|
"+=",
|
|
|
|
"+",
|
|
|
|
"-",
|
|
|
|
"*",
|
|
|
|
"/",
|
|
|
|
"%",
|
|
|
|
"<<",
|
|
|
|
">>",
|
|
|
|
">>>",
|
|
|
|
"&",
|
|
|
|
"|",
|
|
|
|
"^",
|
|
|
|
"&&",
|
|
|
|
"||",
|
|
|
|
"===",
|
|
|
|
"==",
|
|
|
|
">=",
|
|
|
|
"<=",
|
|
|
|
"<",
|
|
|
|
">",
|
|
|
|
"!=",
|
|
|
|
"!=="
|
|
|
|
],
|
|
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
|
|
"requireSpacesInConditionalExpression": true,
|
|
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
|
|
"requireSpacesInForStatement": true,
|
|
|
|
"requireLineFeedAtFileEnd": true,
|
|
|
|
"requireSpacesInFunctionExpression": {
|
|
|
|
"beforeOpeningCurlyBrace": true
|
|
|
|
},
|
2015-01-19 22:54:45 +08:00
|
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
|
|
"beforeOpeningRoundBrace": true,
|
|
|
|
"beforeOpeningCurlyBrace": true
|
2015-01-19 22:53:53 +08:00
|
|
|
},
|
|
|
|
"disallowSpacesInsideObjectBrackets": "all",
|
|
|
|
"disallowSpacesInsideArrayBrackets": "all",
|
|
|
|
"disallowSpacesInsideParentheses": true,
|
|
|
|
"validateJSDoc": {
|
|
|
|
"checkParamNames": true,
|
|
|
|
"requireParamTypes": true
|
|
|
|
},
|
|
|
|
"disallowMultipleLineBreaks": true,
|
|
|
|
"disallowNewlineBeforeBlockStatements": true
|
|
|
|
}
|