mediawiki-extensions-Visual.../.eslintrc.json
Bartosz Dziewoński e7fd1ac847 .eslintrc: Enable and fix "max-statements-per-line": 1
I am surprised this was disabled. I investigated this after reviewing
some code by a new contributor which I was certain should have failed
the lint check, but passed.

Change-Id: I5b3c837b8ca3292f6e268b3922443bd9587eadbe
2018-10-30 00:19:16 +01:00

24 lines
421 B
JSON

{
"extends": "wikimedia",
"env": {
"browser": true,
"jquery": true
},
"globals": {
"ve": true,
"VisualEditorSupportCheck": false,
"OO": false,
"unicodeJS": false,
"RangeFix": false,
"Papa": false,
"mw": false,
"require": false
},
"rules": {
"dot-notation": [ "error", { "allowKeywords": true } ],
"max-statements-per-line": [ "error", { "max": 1 } ],
"max-len": 0,
"valid-jsdoc": 0
}
}