mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-23 14:56:43 +00:00
Configure JSHint to recognize MediaWiki environment globals
Bug: T373068 Change-Id: Ifaa994b4c844ec29aa77182af7159c9bdcdc2441
This commit is contained in:
parent
d3920f2a1c
commit
1b52f36c7b
|
@ -402,7 +402,8 @@
|
|||
var mode = session2.getMode().$id;
|
||||
if ( mode === 'ace/mode/javascript' ) {
|
||||
session2.$worker.send( 'changeOptions', [ {
|
||||
maxerr: 1000
|
||||
maxerr: 1000,
|
||||
globals: { mw: true, mediaWiki: true, $: true, jQuery: true, OO: true }
|
||||
} ] );
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue