mediawiki-extensions-Revisi.../modules/.eslintrc.json
Adam Wight b900446572 Migrate JS to ES6
Reintroduces IIFE closures in test files because variables were
declared in the global namespace, and "const" now causes hard errors.

Bug: T339323
Change-Id: I69e9d7a29591137f185f3e5ab02dea590ec4dff6
2023-06-23 08:01:31 +02:00

32 lines
603 B
JSON

{
"root": true,
"env": {
"commonjs": true
},
"extends": [
"wikimedia/client-es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off",
"no-jquery/no-global-selector": "off",
"no-jquery/no-class-state": "off"
},
"settings": {
"jsdoc": {
"preferredTypes": {
"DiffPage": "DiffPage",
"Pointer": "Pointer",
"PointerLine": "PointerLine",
"PointerView": "PointerView",
"Revision": "Revision",
"RevisionList": "RevisionList",
"RevisionListView": "RevisionListView",
"Slider": "Slider",
"SliderView": "SliderView"
}
}
}
}