You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.0 KiB
80 lines
2.0 KiB
{
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
|
|
"requireSpaceBeforeBinaryOperators": ["?", "+", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"requireSpaceAfterBinaryOperators": ["?", "+", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowSpaceAfterBinaryOperators": ["!"],
|
|
"disallowSpaceBeforeBinaryOperators": [","],
|
|
|
|
"disallowMultipleVarDecl": true,
|
|
"disallowEmptyBlocks": true,
|
|
"disallowKeywords": ["with"],
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
"disallowSpacesInsideObjectBrackets": true,
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowPaddingNewlinesInBlocks": true,
|
|
|
|
"requireCommaBeforeLineBreak": true,
|
|
|
|
"requireParenthesesAroundIIFE": true,
|
|
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
|
|
"requireSpacesInConditionalExpression": true,
|
|
|
|
"requireSpacesInFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"=",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
|
|
"requireOperatorBeforeLineBreak": [
|
|
"?",
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"=",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!==",
|
|
">",
|
|
">=",
|
|
"<",
|
|
"<="
|
|
],
|
|
|
|
"safeContextKeyword": "self",
|
|
|
|
"validateIndentation": 4,
|
|
"validateParameterSeparator": ", ",
|
|
|
|
"excludeFiles": [
|
|
"test/data/**",
|
|
"test/support/fakes/**"
|
|
],
|
|
"validateJSDoc": {
|
|
"checkParamNames": true,
|
|
"requireParamTypes": true
|
|
},
|
|
|
|
"disallowMultipleLineBreaks": true,
|
|
"validateLineBreaks": "LF",
|
|
"disallowYodaConditions": true
|
|
}
|
|
|