From 2aadb01365724dca00bde7ddab97f46dc125fac1 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 17 Nov 2023 16:15:44 +0000 Subject: [PATCH] eslint: Enforce no-use-before-define Only one issue to fix now that we don't error on functions. Change-Id: Idaee60507557b2a73deaf03d93829b9dade5c1f0 --- resources/dist/index.js | Bin 47873 -> 47873 bytes resources/dist/index.js.map.json | Bin 217384 -> 217385 bytes src/.eslintrc.json | 1 - src/preview/model.js | 4 ++-- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/dist/index.js b/resources/dist/index.js index 02fcbac51ce6b650a08daea5698784da75e71fae..d1aa5f72fedaf19ec135af558f61bbb5f85fb9bc 100644 GIT binary patch delta 367 zcmZqt#?<(YX+uK-OLVM``{eqB62|b!UlRWMx$A{Q2Drw%yZX5Xc{*DcmuHqFXK18q zRwpMGrz)VzS|N+Mcm_NAI(fQ>I)-@q`$459+b1bAx=&6{GPIA-NYyFPtS(9|DJ{xV z2nX?Wl$1aS=mI4r&DyfWA_XVg=veEt(!Au7%=|osFp#|<;SyV?$(NIgCwnKGaEIy@ zlon@blxXTWZSG3`%FGzPxgouo1xT^vY-4A1-@LncDksp+z}iY6=X7nh5RhX&!4b%* zoN$GeF=DgdG$&?Ws80eM-CcFuH_x5rD1eHsKD_D=00_&?wQ= ziP+qg{FRx}eRD&4GYgPn$=Sxv7`l0P@l;Nr&4IO*K+fsfY#|`We1ap8Q#s)ZD`WU( zziCd)yim6XIJ&#)gl?WY^Aita*yah#WPv73Ubl8PP<7V2Qf46aVB1Y@Nf%k7Tl~t*z7M>D#lI0e!lAcmMzZ diff --git a/resources/dist/index.js.map.json b/resources/dist/index.js.map.json index 03ad79b4c945f2c00be4538c8f51ce48ebebf1ee..752c937f0cec3a7580151b5082ee28655851e7b6 100644 GIT binary patch delta 1601 zcmZuxTTC2P7|tvgcN-}@C<+$ zfB%23Uu)aC)^_z}mo=N6O;!qJ%YJ;SQ?gI>Y|L~Fl!!cz6pUlYk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P|bS{B7875^&z@(_s3c`-b zh??W&GZQN%bYcle5@-L8Qlu1V24foHmg$&)>QK^JOpi))gb}DTNm443(W00uPwOgv zPaCq}(LpRu2_7yiRhZyQ1v?2z0eQ;6fDqM7Xujvq}8 zYVh*e(G?Nuqj_1^P_5=P2%n%Wew;<~=3XuVm!RNsxIU%^^XN5ClQPPYbUJD-sCJ>&~V_3l?%g2Oh zB(e9=ViL7F4WhC^T_^dawL=aF$q*%^^UbwWj<-7l&syZ%)7_3qYzUk3S;hC%E~lt^ zx+J@;tq*>)IZR{^Mt<%5r;dt(Ld0#oe&N^N{=FRtNehG-)U>pZ9_r~Y3ThbzrU!MF zc>Xedpc9S-TCu*qe9C#Cj;oxLCzXap*5fv(CxWEv)Ms6~dd}{wN5Pz@3AZJEG1BE2 z_e*Lxoi1C+FJ1P2Lu^DRNnLJpe*L)zI+3I{oOzw|g4DK;TbYt~mAZ*@OmOrzL| zn-{ar1f(h@EZyQ`oAt+YD$XcAE|wuXF$I!Zr@4r=wb|Eov=~B$GvE{=EG%XhhZSbA zaVBM9922+$pEU>7{X_|6i) z_T6WWJ;BG{yt(-g8|&~bTknd_uv$`Pg)G8V7_7FEV>JfT(^-?X8Lqrgz>O(7GvT7V z;u=%p&XT4kwo;0slTP6=kagM)p>Ksnm&JhM`7FLf+C*Fm@;6F!dY*}vbx!dkR zaX2j1!i$n;mu3+q>E$2azK90`g=W0`#GT_P0Af<-@7~!R+RvQAd%}r(Wb}^Phig{Iz2{ bJ=nkhZ!-My@M~|pxK_At+bG<(Z&m&VaDD_( diff --git a/src/.eslintrc.json b/src/.eslintrc.json index 8636d465d..1c2f62769 100644 --- a/src/.eslintrc.json +++ b/src/.eslintrc.json @@ -18,7 +18,6 @@ "no-jquery/no-when": "error", "no-jquery/no-extend": "error", "compat/compat": "off", - "no-use-before-define": "off", "jsdoc/no-undefined-types": "off" } } diff --git a/src/preview/model.js b/src/preview/model.js index 37b2eb5cd..b37c6a5b4 100644 --- a/src/preview/model.js +++ b/src/preview/model.js @@ -4,6 +4,8 @@ import { requiresSummary } from '../ui/renderer'; +const selectors = []; + /** * Page Preview types as defined in Schema:Popups * https://meta.wikimedia.org/wiki/Schema:Popups @@ -205,8 +207,6 @@ function getPagePreviewType( type, processedExtract ) { } } -const selectors = []; - const dwellDelay = {}; /**