mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
bf9f17d9b9
Change-Id: I12f65f48ea86b2496de295be1b61d69d3c727d2a
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
{
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do"],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "function"],
|
|
"requireSpacesInFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireMultipleVarDecl": true,
|
|
"requireSpacesInsideObjectBrackets": "all",
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
"disallowLeftStickedOperators": ["?", "+", "/", "*", "-", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"requireRightStickedOperators": ["!"],
|
|
"requireLeftStickedOperators": [","],
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
"disallowKeywords": [ "with" ],
|
|
"disallowMultipleLineBreaks": true,
|
|
"validateLineBreaks": "LF",
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
"requireLineFeedAtFileEnd": true
|
|
}
|