69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
{
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"case",
|
|
"return",
|
|
"try",
|
|
"typeof"
|
|
],
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"disallowSpacesInFunctionDeclaration": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"requireSpaceBetweenArguments": true,
|
|
"requireMultipleVarDecl": "onevar",
|
|
"requireVarDeclFirst": true,
|
|
"requireBlocksOnNewline": true,
|
|
"disallowEmptyBlocks": true,
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
","
|
|
],
|
|
"requireSpacesInForStatement": true,
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"disallowKeywords": [
|
|
"with",
|
|
"continue"
|
|
],
|
|
"validateIndentation": 2,
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowKeywordsOnNewLine": [
|
|
"else"
|
|
],
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireDotNotation": true,
|
|
"disallowNewlineBeforeBlockStatements": true,
|
|
"disallowMultipleLineStrings": true,
|
|
"requireSpaceBeforeObjectValues": true
|
|
}
|