2014-09-10 08:06:24 +04:00
|
|
|
{
|
2015-10-15 11:24:39 +03:00
|
|
|
"plugins": [
|
|
|
|
"jscs-jsdoc"
|
|
|
|
],
|
2014-12-30 05:11:24 +03:00
|
|
|
"additionalRules": [ "core/test/utils/jscs-rules/*.js" ],
|
2014-09-10 08:06:24 +04:00
|
|
|
"requireCurlyBraces": [
|
|
|
|
"if",
|
|
|
|
"else",
|
|
|
|
"for",
|
|
|
|
"while",
|
|
|
|
"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
|
|
|
|
},
|
2014-10-07 18:01:11 +04:00
|
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
|
|
"beforeOpeningRoundBrace": true
|
|
|
|
},
|
2014-09-10 08:06:24 +04:00
|
|
|
"requireMultipleVarDecl": "onevar",
|
|
|
|
"requireBlocksOnNewline": 1,
|
|
|
|
"disallowPaddingNewlinesInBlocks": true,
|
|
|
|
"disallowEmptyBlocks": true,
|
|
|
|
"disallowSpacesInsideObjectBrackets": "all",
|
|
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
|
|
"disallowSpacesInsideParentheses": true,
|
|
|
|
"disallowQuotedKeysInObjects": true,
|
|
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
|
|
","
|
|
|
|
],
|
|
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
|
|
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
|
|
|
|
"disallowKeywords": [ "with" ],
|
|
|
|
"disallowMultipleLineBreaks": true,
|
|
|
|
"validateQuoteMarks": "'",
|
|
|
|
"validateIndentation": 4,
|
|
|
|
"disallowMixedSpacesAndTabs": true,
|
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"disallowTrailingComma": true,
|
|
|
|
"disallowKeywordsOnNewLine": [ "else" ],
|
|
|
|
"requireLineFeedAtFileEnd": true,
|
|
|
|
"requireCapitalizedConstructors": true,
|
|
|
|
"safeContextKeyword": ["self"],
|
|
|
|
"requireDotNotation": true,
|
|
|
|
"disallowYodaConditions": true,
|
2015-10-12 19:54:15 +03:00
|
|
|
"jsDoc": {
|
2014-09-10 08:06:24 +04:00
|
|
|
"checkParamNames": true,
|
|
|
|
"checkRedundantParams": true,
|
|
|
|
"requireParamTypes": true
|
|
|
|
},
|
|
|
|
"requireSpaceAfterLineComment": true,
|
|
|
|
"disallowNewlineBeforeBlockStatements": true
|
|
|
|
}
|