mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-19 02:30:45 +00:00
79ee43fbeb
The test would lead to an exception when 'mediaWiki' is not defined. The exception would then also abort the whole execution so in this context it's safer to use typeof with 'undefined'. When the mediaWiki js base is loaded though, loader.getState() is guaranteed to be available since it is part of the root module. This also uses "mw" instead of "mediaWiki" for consistency in test. Change-Id: I1262d0b5c4a1136f4d2294f125336e72118c6e2c
16 lines
196 B
JSON
16 lines
196 B
JSON
{
|
|
"extends": "../../.eslintrc.json",
|
|
"env": {
|
|
"es6": true,
|
|
"mocha": true,
|
|
"node": true
|
|
},
|
|
"globals": {
|
|
"browser": "readonly",
|
|
"mw": "readonly"
|
|
},
|
|
"rules": {
|
|
"no-console": 0
|
|
}
|
|
}
|