mediawiki-extensions-Popups/tests/selenium/.eslintrc.json
WMDE-Fisch 79ee43fbeb Avoid exception when checking for loaded modules
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
2019-04-08 19:51:11 +02:00

16 lines
196 B
JSON

{
"extends": "../../.eslintrc.json",
"env": {
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"browser": "readonly",
"mw": "readonly"
},
"rules": {
"no-console": 0
}
}