mediawiki-extensions-CodeMi.../resources/.eslintrc.json
Ed Sanders 1b101f09ee ESLint: Update syntax to ES6 and autofix
Change-Id: I613cc64a9bf3f375a40f75a1441b83f181a2ab42
2024-06-22 10:26:58 +01:00

30 lines
434 B
JSON

{
"root": true,
"extends": [
"wikimedia/client",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"parserOptions": {
"sourceType": "commonjs"
},
"globals": {
"CodeMirror": "readonly"
},
"rules": {
"max-len": "off",
"prefer-const": "warn"
},
"overrides": [
{
"files": [
"addon/edit/*.js"
],
"rules": {
"computed-property-spacing": [ "error", "never" ],
"indent": [ "error", 2 ]
}
}
]
}