147 lines
3.3 KiB
Text
147 lines
3.3 KiB
Text
{
|
|
"disallowDanglingUnderscores": {
|
|
"allExcept": ["_exception", "_obj" , "_private"]
|
|
},
|
|
"disallowEmptyBlocks": true,
|
|
"disallowImplicitTypeConversion": [
|
|
"binary",
|
|
"boolean",
|
|
"numeric",
|
|
"string"
|
|
],
|
|
"disallowKeywords": [
|
|
"with"
|
|
],
|
|
"disallowKeywordsOnNewLine": [
|
|
"else"
|
|
],
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMultipleSpaces": true,
|
|
"disallowMultipleVarDecl": true,
|
|
"disallowNewlineBeforeBlockStatements": true,
|
|
"disallowQuotedKeysInObjects": true,
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": [
|
|
"++",
|
|
"--",
|
|
"+",
|
|
"-",
|
|
"~",
|
|
"!"
|
|
],
|
|
"disallowSpaceBeforePostfixUnaryOperators": [
|
|
"++",
|
|
"--"
|
|
],
|
|
"disallowSpacesInCallExpression": true,
|
|
"disallowSpacesInsideArrayBrackets": "all",
|
|
"disallowSpacesInsideObjectBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowYodaConditions": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch",
|
|
"case",
|
|
"default"
|
|
],
|
|
"requireDollarBeforejQueryAssignment": true,
|
|
"requireDotNotation": true,
|
|
"requireLineBreakAfterVariableAssignment": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireOperatorBeforeLineBreak": [
|
|
"?",
|
|
"=",
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!==",
|
|
">",
|
|
">=",
|
|
"<",
|
|
"<="
|
|
],
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSemicolons": true,
|
|
"requireSpaceAfterBinaryOperators": [
|
|
"=",
|
|
",",
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"do",
|
|
"for",
|
|
"if",
|
|
"else",
|
|
"switch",
|
|
"case",
|
|
"try",
|
|
"catch",
|
|
"void",
|
|
"while",
|
|
"with",
|
|
"return",
|
|
"typeof",
|
|
"function"
|
|
],
|
|
"requireSpaceAfterLineComment": true,
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"=",
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireSpaceBeforeKeywords": [
|
|
"else",
|
|
"while",
|
|
"catch"
|
|
],
|
|
"requireSpaceBeforeObjectValues": true,
|
|
"requireSpaceBetweenArguments": true,
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true,
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInConditionalExpression": {
|
|
"afterTest": true,
|
|
"beforeConsequent": true,
|
|
"afterConsequent": true,
|
|
"beforeAlternate": true
|
|
},
|
|
"requireSpacesInForStatement": true,
|
|
"validateIndentation": 4,
|
|
"validateJSDoc": {
|
|
"checkParamNames": true,
|
|
"checkRedundantParams": true,
|
|
"requireParamTypes": true
|
|
},
|
|
"validateLineBreaks": "LF",
|
|
"validateParameterSeparator": ", ",
|
|
"validateQuoteMarks": "'"
|
|
}
|