build: Scrap default IIFE with default globals

Change-Id: I423325dcab6af1aa3e0a76d78928686571145dac
This commit is contained in:
James D. Forrester 2019-04-06 17:08:49 -07:00
parent a4257261af
commit f3c558e148
2 changed files with 6 additions and 9 deletions

View file

@ -10,10 +10,8 @@
},
"rules": {
"max-len": 0,
"no-jquery/no-global-selector": 0,
"no-undef": 0,
"one-var": 0,
"vars-on-top": 0,
"wrap-iife": 0
"vars-on-top": 0
}
}

View file

@ -1,6 +1,5 @@
( function ( $ ) {
$( function () {
// eslint-disable-next-line no-jquery/no-global-selector
var $elm = $( '.mw-display-qrcode' );
$elm.qrcode( $elm.data( 'mw-qrcode-url' ) );
} );
} )( jQuery );