mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
156427df55
Changes the eslint rules to support "require", "module.exports", and relaxes the top-level lexical scope for each file. FIXME: This allows a combination of CommonJS code, which becomes unsafe global code scope if used in a "scripts" module. What's the correct order of migration steps? Change-Id: I2f80732942a602c0fcff5c0dad1e2afc2640651e
20 lines
282 B
JSON
20 lines
282 B
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"commonjs": true
|
|
},
|
|
"extends": [
|
|
"wikimedia/client",
|
|
"wikimedia/jquery",
|
|
"wikimedia/mediawiki"
|
|
],
|
|
"globals": {
|
|
"OO": false
|
|
},
|
|
"rules": {
|
|
"max-len": "off",
|
|
"no-jquery/no-global-selector": "off",
|
|
"no-jquery/no-class-state": "off"
|
|
}
|
|
}
|