node-janus/.jscsrc

65 строки
2.1 KiB
Plaintext

{
"requireSpaceAfterKeywords": [
"if", "else", "for", "while", "do", "switch", "return", "try", "catch"
],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowMultipleVarDecl": true,
"requireBlocksOnNewline": 1,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"requireSpacesInsideObjectBrackets": "allButNested",
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": [
"?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "||", "&&"
],
"disallowLeftStickedOperators": [
"?", "+", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "||", "&&"
],
"requireRightStickedOperators": [
"!", "~"
],
"disallowRightStickedOperators": [
"?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "||", "&&"
],
"requireLeftStickedOperators": [
","
],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": [
"=", "+", "-", "/", "*", "=", "==", "===", "!=", "!=="
],
"requireSpaceAfterBinaryOperators": [
"=", ",", "+", "-", "/", "*", "=", "==", "===", "!=", "!=="
],
"disallowImplicitTypeConversion": [
"numeric", "boolean", "binary", "string"
],
"requireCamelCaseOrUpperCaseIdentifiers": true,
"disallowKeywords": [
"with"
],
"disallowMultipleLineBreaks": true,
"validateLineBreaks": "LF",
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"validateIndentation": 2,
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"maximumLineLength": 80,
"requireCapitalizedConstructors": true,
"disallowYodaConditions": true,
"excludeFiles": [
]
}