mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
90 lines
1.7 KiB
JSON
90 lines
1.7 KiB
JSON
{
|
|
"validateIndentation": 2,
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireOperatorBeforeLineBreak": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
"validateQuoteMarks": "'",
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
"requireMultipleVarDecl": true,
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"return",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"=",
|
|
"+=",
|
|
"-=",
|
|
"*=",
|
|
"/=",
|
|
"%=",
|
|
"<<=",
|
|
">>=",
|
|
">>>=",
|
|
"&=",
|
|
"|=",
|
|
"^=",
|
|
"+=",
|
|
"+",
|
|
"-",
|
|
"*",
|
|
"/",
|
|
"%",
|
|
"<<",
|
|
">>",
|
|
">>>",
|
|
"&",
|
|
"|",
|
|
"^",
|
|
"&&",
|
|
"||",
|
|
"===",
|
|
"==",
|
|
">=",
|
|
"<=",
|
|
"<",
|
|
">",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireSpacesInForStatement": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireSpacesInFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true,
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"disallowSpacesInsideObjectBrackets": "all",
|
|
"disallowSpacesInsideArrayBrackets": "all",
|
|
"disallowSpacesInsideParentheses": true,
|
|
"validateJSDoc": {
|
|
"checkParamNames": true,
|
|
"requireParamTypes": true
|
|
},
|
|
"disallowMultipleLineBreaks": true,
|
|
"disallowNewlineBeforeBlockStatements": true
|
|
}
|