From f3c558e148c8f4865c4563fbc95331259330619a Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Sat, 6 Apr 2019 17:08:49 -0700 Subject: [PATCH] build: Scrap default IIFE with default globals Change-Id: I423325dcab6af1aa3e0a76d78928686571145dac --- .eslintrc.json | 4 +--- modules/ext.oath.showqrcode.js | 11 +++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index dba8a50b..195c0ed6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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 } } diff --git a/modules/ext.oath.showqrcode.js b/modules/ext.oath.showqrcode.js index b8741ce7..6fa4b164 100644 --- a/modules/ext.oath.showqrcode.js +++ b/modules/ext.oath.showqrcode.js @@ -1,6 +1,5 @@ -( function ( $ ) { - $( function () { - var $elm = $( '.mw-display-qrcode' ); - $elm.qrcode( $elm.data( 'mw-qrcode-url' ) ); - } ); -} )( jQuery ); +$( function () { + // eslint-disable-next-line no-jquery/no-global-selector + var $elm = $( '.mw-display-qrcode' ); + $elm.qrcode( $elm.data( 'mw-qrcode-url' ) ); +} );