mediawiki-extensions-Revisi.../.eslintrc.json
Adam Wight 156427df55 ESLint config for CommonJS module syntax
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
2020-03-29 23:24:35 +02:00

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"
}
}