mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-30 18:44:15 +00:00
98 lines
1.7 KiB
Plaintext
98 lines
1.7 KiB
Plaintext
|
{
|
||
|
"requireCurlyBraces": [
|
||
|
"if",
|
||
|
"else",
|
||
|
"for",
|
||
|
"while",
|
||
|
"do",
|
||
|
"try",
|
||
|
"catch"
|
||
|
],
|
||
|
"requireSpaceAfterKeywords": [
|
||
|
"if",
|
||
|
"else",
|
||
|
"for",
|
||
|
"while",
|
||
|
"do",
|
||
|
"switch",
|
||
|
"return",
|
||
|
"try",
|
||
|
"catch",
|
||
|
"function"
|
||
|
],
|
||
|
"requireSpaceBeforeBlockStatements": true,
|
||
|
"requireParenthesesAroundIIFE": true,
|
||
|
"requireSpacesInConditionalExpression": true,
|
||
|
"disallowSpacesInNamedFunctionExpression": {
|
||
|
"beforeOpeningRoundBrace": true
|
||
|
},
|
||
|
"disallowSpacesInFunctionDeclaration": {
|
||
|
"beforeOpeningRoundBrace": true
|
||
|
},
|
||
|
"requireMultipleVarDecl": "onevar",
|
||
|
"requireBlocksOnNewline": 1,
|
||
|
"disallowEmptyBlocks": true,
|
||
|
"requireSpacesInsideObjectBrackets": "all",
|
||
|
"disallowDanglingUnderscores": true,
|
||
|
"disallowSpaceAfterObjectKeys": true,
|
||
|
"requireCommaBeforeLineBreak": true,
|
||
|
"disallowSpaceAfterPrefixUnaryOperators": [
|
||
|
"++",
|
||
|
"--",
|
||
|
"+",
|
||
|
"-",
|
||
|
"~",
|
||
|
"!"
|
||
|
],
|
||
|
"disallowSpaceBeforePostfixUnaryOperators": [
|
||
|
"++",
|
||
|
"--"
|
||
|
],
|
||
|
"disallowSpaceBeforeBinaryOperators": [
|
||
|
","
|
||
|
],
|
||
|
"requireSpaceBeforeBinaryOperators": [
|
||
|
"=",
|
||
|
"+",
|
||
|
"-",
|
||
|
"/",
|
||
|
"*",
|
||
|
"==",
|
||
|
"===",
|
||
|
"!=",
|
||
|
"!==",
|
||
|
">",
|
||
|
">=",
|
||
|
"<",
|
||
|
"<="
|
||
|
],
|
||
|
"requireSpaceAfterBinaryOperators": [
|
||
|
"=",
|
||
|
"+",
|
||
|
"-",
|
||
|
"/",
|
||
|
"*",
|
||
|
"==",
|
||
|
"===",
|
||
|
"!=",
|
||
|
"!==",
|
||
|
">",
|
||
|
">=",
|
||
|
"<",
|
||
|
"<="
|
||
|
],
|
||
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
||
|
"disallowKeywords": [ "with" ],
|
||
|
"disallowMultipleLineBreaks": true,
|
||
|
"validateLineBreaks": "LF",
|
||
|
"validateQuoteMarks": "'",
|
||
|
"disallowMixedSpacesAndTabs": true,
|
||
|
"disallowTrailingWhitespace": true,
|
||
|
"disallowTrailingComma": true,
|
||
|
"disallowKeywordsOnNewLine": ["else"],
|
||
|
"requireLineFeedAtFileEnd": true,
|
||
|
"requireCapitalizedConstructors": true,
|
||
|
"requireDotNotation": true,
|
||
|
"disallowYodaConditions": true
|
||
|
}
|