2013-10-29 21:35:33 +04:00
|
|
|
{
|
|
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return"],
|
2014-04-04 17:00:38 +04:00
|
|
|
"requireParenthesesAroundIIFE": true,
|
2013-10-29 21:35:33 +04:00
|
|
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
|
|
"disallowSpacesInFunctionExpression": { "beforeOpeningRoundBrace": true },
|
2014-04-04 17:00:38 +04:00
|
|
|
"disallowSpacesInsideParentheses": true,
|
2013-10-29 21:35:33 +04:00
|
|
|
"disallowSpaceAfterObjectKeys": true,
|
2014-04-04 17:00:38 +04:00
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"requireOperatorBeforeLineBreak": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
2014-10-09 11:43:01 +04:00
|
|
|
"disallowSpaceAfterBinaryOperators": ["!"],
|
|
|
|
"disallowSpaceBeforeBinaryOperators": [","],
|
2014-04-04 17:00:38 +04:00
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
2014-10-09 11:43:01 +04:00
|
|
|
"requireSpaceBeforeBinaryOperators": ["?", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
|
|
"requireSpaceAfterBinaryOperators": ["?", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
2014-04-04 17:00:38 +04:00
|
|
|
"disallowKeywords": ["with"],
|
|
|
|
"disallowMultipleLineStrings": true,
|
|
|
|
"validateLineBreaks": "LF",
|
|
|
|
"validateIndentation": "\t",
|
|
|
|
"disallowMixedSpacesAndTabs": "smart",
|
|
|
|
"disallowTrailingWhitespace": true,
|
2013-10-29 21:35:33 +04:00
|
|
|
"requireKeywordsOnNewLine": ["else"],
|
|
|
|
"requireLineFeedAtFileEnd": true,
|
2014-04-04 17:00:38 +04:00
|
|
|
"maximumLineLength": 140,
|
2016-05-01 14:41:03 +03:00
|
|
|
"safeContextKeyword": "self",
|
2014-04-04 17:00:38 +04:00
|
|
|
"requireDotNotation": true,
|
2013-10-29 21:35:33 +04:00
|
|
|
"validateJSDoc": {
|
|
|
|
"checkParamNames": true,
|
|
|
|
"checkRedundantParams": true,
|
|
|
|
"requireParamTypes": true
|
|
|
|
},
|
|
|
|
"excludeFiles": ["node_modules/**"]
|
|
|
|
}
|