2014-07-11 09:46:09 +04:00
|
|
|
{
|
|
|
|
"disallowEmptyBlocks": true,
|
|
|
|
"disallowKeywords": ["with"],
|
|
|
|
"disallowMixedSpacesAndTabs": true,
|
|
|
|
"disallowMultipleLineStrings": true,
|
|
|
|
"disallowMultipleVarDecl": true,
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
2014-10-18 02:04:57 +04:00
|
|
|
"disallowSpacesInCallExpression": true,
|
2015-02-07 00:34:11 +03:00
|
|
|
"disallowSpacesInsideBrackets": true,
|
2014-07-11 09:46:09 +04:00
|
|
|
"disallowTrailingWhitespace": true,
|
|
|
|
"requireCapitalizedConstructors": true,
|
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
|
|
|
|
"requireLineFeedAtFileEnd": true,
|
2014-12-16 02:26:58 +03:00
|
|
|
"requireOperatorBeforeLineBreak": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
2014-07-11 09:46:09 +04:00
|
|
|
"requireParenthesesAroundIIFE": true,
|
|
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
|
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
2014-07-11 14:11:31 +04:00
|
|
|
"requireSpacesInConditionalExpression": true,
|
2014-07-11 09:46:09 +04:00
|
|
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
2015-02-07 00:34:11 +03:00
|
|
|
"requireSpacesInForStatement": true,
|
2014-07-11 14:11:31 +04:00
|
|
|
"validateIndentation": 4,
|
2014-10-18 02:04:57 +04:00
|
|
|
"validateLineBreaks": "LF",
|
2014-12-17 01:51:47 +03:00
|
|
|
"validateParameterSeparator": ", ",
|
|
|
|
"plugins": [
|
|
|
|
"jscs-jsdoc"
|
|
|
|
],
|
|
|
|
"jsDoc": {
|
|
|
|
"checkAnnotations": {
|
2015-01-05 12:05:46 +03:00
|
|
|
"preset": "jsdoc3"
|
2014-12-17 01:51:47 +03:00
|
|
|
},
|
|
|
|
"checkParamNames": true,
|
|
|
|
"checkRedundantParams": true,
|
|
|
|
"requireParamTypes": true
|
|
|
|
}
|
2014-07-11 09:46:09 +04:00
|
|
|
}
|