61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
{
|
|
"esnext": true,
|
|
"maximumLineLength": {
|
|
"value": 140,
|
|
"allowComments": true
|
|
},
|
|
"requireSemicolons": true,
|
|
"requireCurlyBraces": [
|
|
"for",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"case",
|
|
"return",
|
|
"try",
|
|
"catch",
|
|
"function",
|
|
"typeof"
|
|
],
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"disallowSpacesInFunctionDeclaration": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"requireSpaceBetweenArguments": true,
|
|
"disallowMultipleVarDecl": "exceptUndefined",
|
|
"disallowEmptyBlocks": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
","
|
|
],
|
|
"requireSpacesInForStatement": true,
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"disallowKeywords": [
|
|
"with"
|
|
],
|
|
"validateIndentation": 2,
|
|
"validateQuoteMarks": { "mark": "'", "escape": true },
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireDotNotation": true,
|
|
"disallowNewlineBeforeBlockStatements": true,
|
|
"disallowMultipleLineStrings": true
|
|
}
|