mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-21 01:52:37 +00:00
20debba3b0
The resulting code style in this file is a little mixed. I tried to stick to the existing style. Most notably is the indention with 2 spaces instead of 1 tab. But I couldn't disable the spaces inside round brackets. They make the code so much more readable. What this patch effectively does is enabling the eslint check for our custom code in this addon, excluding all old code, and exclusing a few rules that conflict to heavily with the old code style. Change-Id: I12f953cb0a6fd35e405b6cc348abfb2c11e70696
12 lines
182 B
JSON
12 lines
182 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client-es5",
|
|
"wikimedia/mediawiki"
|
|
],
|
|
"rules": {
|
|
"computed-property-spacing": [ "error", "never" ],
|
|
"indent": [ "error", 2 ]
|
|
}
|
|
}
|