From a310197a5a969f5e03246f08d4ff1a049b726b34 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 3 Aug 2021 12:10:42 -0500 Subject: [PATCH] eslint: prefer-const, no-loop-func, no-const-assign, no-var --- .eslintrc.js | Bin 5001 -> 5114 bytes app/soapbox/actions/alerts.js | Bin 1376 -> 1376 bytes app/soapbox/actions/compose.js | Bin 17149 -> 17276 bytes app/soapbox/components/autosuggest_input.js | Bin 6728 -> 6732 bytes .../components/autosuggest_textarea.js | Bin 7640 -> 7644 bytes .../components/extended_video_player.js | Bin 1559 -> 1561 bytes app/soapbox/components/media_gallery.js | Bin 20501 -> 20500 bytes app/soapbox/components/profile_hover_card.js | Bin 3558 -> 3560 bytes app/soapbox/components/status.js | Bin 18646 -> 18749 bytes app/soapbox/components/status_action_bar.js | Bin 18427 -> 18431 bytes app/soapbox/components/status_content.js | Bin 8964 -> 8968 bytes app/soapbox/containers/status_container.js | Bin 7064 -> 7066 bytes .../features/account/components/header.js | Bin 18334 -> 18338 bytes .../account_gallery/components/media_item.js | Bin 4996 -> 4998 bytes app/soapbox/features/account_gallery/index.js | Bin 7622 -> 7624 bytes .../features/account_timeline/index.js | Bin 6364 -> 6366 bytes .../features/compose/components/action_bar.js | Bin 4466 -> 4468 bytes .../emoji_picker_dropdown_container.js | Bin 2146 -> 2148 bytes .../features/compose/util/url_regex.js | Bin 15634 -> 15634 bytes app/soapbox/features/edit_profile/index.js | Bin 14110 -> 14114 bytes app/soapbox/features/emoji/emoji.js | Bin 3365 -> 3476 bytes .../features/emoji/emoji_compressed.js | Bin 3441 -> 3430 bytes .../features/emoji/emoji_mart_data_light.js | Bin 976 -> 877 bytes .../features/emoji/emoji_mart_search_light.js | Bin 4600 -> 4634 bytes .../emoji/emoji_unicode_mapping_light.js | Bin 1185 -> 1084 bytes app/soapbox/features/emoji/emoji_utils.js | Bin 5904 -> 5932 bytes app/soapbox/features/filters/index.js | Bin 11176 -> 11178 bytes app/soapbox/features/followers/index.js | Bin 4172 -> 4174 bytes app/soapbox/features/following/index.js | Bin 4177 -> 4179 bytes .../features/hashtag_timeline/index.js | Bin 3976 -> 3986 bytes .../import_data/components/csv_importer.js | Bin 2130 -> 2132 bytes .../components/column_settings.js | Bin 11462 -> 11462 bytes .../components/multi_setting_toggle.js | Bin 1329 -> 1329 bytes .../components/icon_picker_dropdown.js | Bin 6259 -> 6263 bytes app/soapbox/features/soapbox_config/index.js | Bin 22749 -> 22751 bytes .../features/status/components/action_bar.js | Bin 16091 -> 16095 bytes .../features/status/components/card.js | Bin 6696 -> 6698 bytes .../status/components/detailed_status.js | Bin 7350 -> 7352 bytes .../containers/detailed_status_container.js | Bin 6598 -> 6600 bytes app/soapbox/features/status/index.js | Bin 19712 -> 19714 bytes .../features/ui/components/column_loading.js | Bin 776 -> 778 bytes .../ui/components/profile_dropdown.js | Bin 3977 -> 3979 bytes .../features/ui/components/tabs_bar.js | Bin 6612 -> 6614 bytes app/soapbox/features/video/index.js | Bin 16409 -> 16409 bytes app/soapbox/is_mobile.js | Bin 670 -> 672 bytes app/soapbox/reducers/admin_log.js | Bin 944 -> 948 bytes app/soapbox/reducers/notifications.js | Bin 6655 -> 6657 bytes app/soapbox/selectors/index.js | Bin 8093 -> 8095 bytes app/soapbox/utils/accounts.js | Bin 1691 -> 1695 bytes app/soapbox/utils/features.js | Bin 1214 -> 1218 bytes app/soapbox/utils/theme.js | Bin 2222 -> 2232 bytes webpack/development.js | Bin 2156 -> 2158 bytes webpack/translationRunner.js | Bin 6198 -> 6208 bytes 53 files changed, 0 insertions(+), 0 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7db751fec02ffcd2bfe82f72be0717e2d28f6c34..e4c8cd801f02d4091afd19bb2be4445fa7f33979 100644 GIT binary patch delta 66 zcmeBF|E0d+8@r$a5U3XvrKY78=_cpr6_-pdU=!iY$mYV=;qzKLc diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index 3a95cddd68708e14befb73af22d4c4bda8359629..2e16b7f24c05a83094119d2fc31510856e9cd145 100644 GIT binary patch delta 159 zcmey{%J`>^al?8smgM}r;>{by&hz=}>npfitXE)z>~eqQlpeI^SqV{<0ceQ^MRI|*6< delta 22 ccmX?Oa>8VTE)!Eu>SRME3m~;Qm+8JZ09$OoeqQlpIVKA*V{-&kgERnwYY6%P delta 22 ccmca(eZzW#3=>mM>SP5b3m~;QhN(ds09;!KH~;_u diff --git a/app/soapbox/components/extended_video_player.js b/app/soapbox/components/extended_video_player.js index b214a598876de1942c9b6e7356892ffcc53973a0..c0553283cc79339499672118a64a5451495225f6 100644 GIT binary patch delta 16 XcmbQvGm~cl3rli-Uh!ro7EvYuD`*6C delta 14 VcmbQqGo5Dv3sX+&W)>DvCIBEU1Cjs$ diff --git a/app/soapbox/components/media_gallery.js b/app/soapbox/components/media_gallery.js index 01638b0b8a4169c988f3393450f9178fb18e15cd..880afd22f39cd699c347b1f78eed914d561a14e8 100644 GIT binary patch delta 58 zcmbQbfN{zK#tn8NEXnzK#hV>OW|?tuDF6Y8TeA7T*AYg+oYWG9;)49loYW$x(vp(= Kyv=)jBAEeVAQgWA delta 71 zcmbQTfN|;q#tn8NEIFwq3X>JZMK?!^G@Gd^00BrOIU_SCr6@H|N1?bNKQkw_$f>lX XBtOrZiwme=^E0m_jGGVn1Tg~uNVFIh diff --git a/app/soapbox/components/profile_hover_card.js b/app/soapbox/components/profile_hover_card.js index 77b0f54b49726a14280bd2d8ec352d0262e144aa..202be475dcb7e0bb3519f7b6aaf7f617b94c2a47 100644 GIT binary patch delta 17 YcmaDR{X%*}DKkrQeqQnBa^`$4071b9iU0rr delta 15 WcmaDM{Y-j8DKk?}>gG!3d@cYq1_h`9 diff --git a/app/soapbox/components/status.js b/app/soapbox/components/status.js index 1bc5b51759f9464f368ab3dfe2b18433bd2c5e26..151a3e926db1ded2c074335906ac407ad5a4cf14 100644 GIT binary patch delta 126 zcmcaMk#X-N#tnT+EXnzK#giu}ZM4!O)M_XOwUs&E=epYEmla(OHoKnPR=jQE3vnqY@=+Vq5w1^wKyj;uS7Q`vp6v+ aCsh~7NmVE)N=-{G(goR6vbj(>RTThBUoAoa delta 27 jcmdlxiSgP*#tnT+OgX8OCn;^5+^Ve4$hG-~a;ho-pCJm7 diff --git a/app/soapbox/components/status_action_bar.js b/app/soapbox/components/status_action_bar.js index 206170e241dae12eb427f3dd9cbf4ba6d316687e..fccf0feb789885bcfe584937173c30bf0649c8f3 100644 GIT binary patch delta 29 gcmey}&-lNeal;&SmgM}r;?48aHwi&lK~^hy0mOX_EdT%j delta 25 ecmez0&-lBaal;&SrkvEx3)D9Wf#@)+mAn9ynF?zF diff --git a/app/soapbox/components/status_content.js b/app/soapbox/components/status_content.js index 0473e600a6e6ff7a39e3d2c90bbae3187cf3145b..0e5d066ea00939fc2bf194d151479d12f2724b77 100644 GIT binary patch delta 49 zcmZp1>u}p3$i|$LS~6LLO`RnSli~Z$SVo9R%S3 diff --git a/app/soapbox/features/account/components/header.js b/app/soapbox/features/account/components/header.js index 4bb1822d70c8d0b1d30cc0e153ebe1be5618cde9..384547338c592fb26f1fa8a8509a8af3f5c4c56a 100644 GIT binary patch delta 39 tcmbQ&&$y_caYKm&S8{${afw21YF_E&{d$U<=SoP4v4F%j@6>xL0RSw74=Mlv delta 25 ecmZ3~&p5B2aYKm&Q%>sU3JFIs5WQFLsRRIe=LvWK diff --git a/app/soapbox/features/account_gallery/components/media_item.js b/app/soapbox/features/account_gallery/components/media_item.js index e3781eb052fa41ffce09c4211b793153415a81af..afc15568f7fb5cce17f5eb75ac378019e86b81b9 100644 GIT binary patch delta 17 YcmZosZ&Tlp&&`sYpI5xOkXx7o05(4bga7~l delta 20 bcmZouZ&BZn&&`~ZS~B@Rx7g+`?mz4RPdo?7 diff --git a/app/soapbox/features/account_gallery/index.js b/app/soapbox/features/account_gallery/index.js index bc289203875b0d510acf8ba39b23e3bf985d9fcc..d09182d0984f9c4362cac6a8a018da96bf636c98 100644 GIT binary patch delta 17 YcmX?ReZqQ!5GzY^eqQlr5!Ou-06YN(82|tP delta 15 WcmX?Meaw1;5Gzwo>Si(4O%ebv2n9C) diff --git a/app/soapbox/features/account_timeline/index.js b/app/soapbox/features/account_timeline/index.js index b62fdf7797127591cbf7457a2ca96d9e06b2b406..313b42c27668cdc754731181ece5bdba1b1e1ba5 100644 GIT binary patch delta 17 Ycmca(c+YUdbyk+-{Ji4LH(8m50Z4)e2LJ#7 delta 15 Wcmca-c*k(VbylXF)Xle9nS}v4&juv` diff --git a/app/soapbox/features/compose/components/action_bar.js b/app/soapbox/features/compose/components/action_bar.js index fe12495b9ef010ac709e1c8ef348d274656c9108..3a4098e872fc64bf1f9f311215a6f0023faeef2f 100644 GIT binary patch delta 17 YcmeyQ^hIeyCKpR`eqQnBY%X?o07BvhI{*Lx delta 15 WcmeyO^hs$$CKppq>gHT7c6Ijr+W-In diff --git a/app/soapbox/features/emoji/emoji.js b/app/soapbox/features/emoji/emoji.js index 62d03ac88cca15f98a8c2ffbf90c97cb01c71f69..da23bc99f0f98feea200e1a72e883f8b90ad0592 100644 GIT binary patch delta 118 zcmZ1~HAQ*@6SJefzJi-)gs-cWLP$ntu>uI?6({DU>TxN6fxebPYH?0xUWsl>W^rOt pPO3s)zHUx_et~XUXnUSdgRS*i}0U7V3$R1%+; mn44OxSDcfXoT_1{sWbTimk}RGWpQd^QE~=IgEbgbw=gljQpaK_`Jm2)M5o&1tgwcaZYA(s)nJa_2ipeMn+r; q3d#9-#U%>Gsfk6&87_$>i9q$yd5I;NWvM#I8i5?JlFgFbzDxkFPbS&` diff --git a/app/soapbox/features/emoji/emoji_mart_data_light.js b/app/soapbox/features/emoji/emoji_mart_data_light.js index 45086fc4cc62600f785987a26d41b9def65992f1..f8f4c40338684e3743da0e2ce2265e126704c16d 100644 GIT binary patch delta 69 zcmcb>{+4aSE=HE*{Ji4Hdl<_g3=<~*$tKLUj8>Bcm=z>-xD@#ktjB1sf+VkynWvDF zSdyp*QLU*^&846KR@lm@0yc2+YDOI}WAjbMNJa?Dgqa7znry;syt$NREi*gB%*@HB zI4vf}a~Q$-I$R*W%H&cm;mNF=yC6m$5kxpGn`n=qOKRZPxjlmSuw zj4B{%JEIPe+Wed`k`Y9^F!O-v5S9nbAZZJZT#)ce4jqv24e}O7k+4^HWko^4&6XQu7jXQ#JAu VOESw+H75r!dw{iUp2f`02mts?7BBz+ delta 139 zcmdnPv5<2^91~Mc>f|IQ^%w<(%rpfJ#k9BJRg`L zEE@p{h}h&XK?R6Vg`gLc0mK{mKo?ZkT5|y%pO#;wpaBuhPOVhP%u`6zRHz0@K>hVb TSb`JeBn5?>)RN8IBCN~+af4eN delta 252 zcmZ3ZH$iX0HKv@@jkofdfYfAPW^oXe!R!yDHt%MZWd(8XaI64P9h`|;I$R1skeQ-j ztB{(TpOvWxWY*Lu6ldfYmBi;I=B5@$8^nSYO_t`GqL7)Upi!KinHOJ@pO>nsPz~0d zoS&1QSFE6ItB^4H4VUEPWn6lj`MBK}K~_fad|(FAJ^~UT{^Sfn1rWDK(2L14C$&T& zA82uPtu+_WptSrV1r3l`c50Siha2{HgL2n8_! diff --git a/app/soapbox/features/followers/index.js b/app/soapbox/features/followers/index.js index 079867772e814b3af21dcdf2fa88d67577b29d6b..25d91880eda6d5fc7ffa2592bc5e179052e94e28 100644 GIT binary patch delta 17 ZcmX@3a86;vCKi_D{Ji4LTUcgr0{}xv2L=ED delta 15 XcmX@7a7JOnCKjfg)Xm#iW^e-lHDv}Q diff --git a/app/soapbox/features/following/index.js b/app/soapbox/features/following/index.js index 9148b09491f019c16591238ae330371075699e97..7e480e1a937f73b7b87c0fdc35128b496f466c44 100644 GIT binary patch delta 17 Zcmcbpa9Lr)CKi_D{Ji4LTUh3D0{}zv2NeJS delta 15 Xcmcbta8Y5yCKjfg)Xm#i=5hl7HTwoL diff --git a/app/soapbox/features/hashtag_timeline/index.js b/app/soapbox/features/hashtag_timeline/index.js index 213a833b33ee4d309b0f807557e6d0c4aac86775..ea9b30e84465d33cfd35648ece564e7b430c417b 100644 GIT binary patch delta 54 ucmeB>pCrHGE;CDVeqQnB`^+yPtjVX?O~FEw89AT~3yu{KMUOa^u>k-y!W1h2 delta 44 qcmbOv-yy%@E;Cb3>gI>cFG2L=bL^%dik$;YIdH51NxtD&#s&axz7N#^ diff --git a/app/soapbox/features/import_data/components/csv_importer.js b/app/soapbox/features/import_data/components/csv_importer.js index a0523e924a9caa1e2c72584a684a124c1cdba3ba..aa7d967f4bf3edab3a04ebd089670095078156fa 100644 GIT binary patch delta 17 Ycmca4a7AFlMJATy{Ji4LmznBW0Yk(G4FCWD delta 15 Wcmca2a7kdpMJA@4)Xi6!>RACb&ju?1 diff --git a/app/soapbox/features/notifications/components/column_settings.js b/app/soapbox/features/notifications/components/column_settings.js index 38437cfefd47676b68bb218cc4c4b6340cb7a060..b9c5d44f0e6f54756fcf1f36215d37a337dbcd59 100644 GIT binary patch delta 16 XcmX>Wc`S0nZf543)RN8nm^m~7K^6v@ delta 16 XcmX>Wc`S0nZf54P#G=jnm^m~7K|Tha diff --git a/app/soapbox/features/notifications/components/multi_setting_toggle.js b/app/soapbox/features/notifications/components/multi_setting_toggle.js index 392369edcb2fc1df84f4008b5faa1d877fb342e5..9eae3d5994fd79b9dce36f9c33264f857bda27cf 100644 GIT binary patch delta 16 XcmdnUwUKK>G81!7YRTp_rqfISGA0GQ delta 16 XcmdnUwUKK>G81!IV$tR_rqfISGEN1+ diff --git a/app/soapbox/features/soapbox_config/components/icon_picker_dropdown.js b/app/soapbox/features/soapbox_config/components/icon_picker_dropdown.js index 8afaa51541276fa1fe87d8bc1c53d25f1a459d05..a414c96e76a60f395850cb63eb597754cded736a 100644 GIT binary patch delta 27 ecmext@ZDfTJugdgeqQnBMqV8b2y4CQ5hehhY6_gHx%9S#t^S@Z}K0CX$}gH6DqpSchBL%4d diff --git a/app/soapbox/features/status/components/detailed_status.js b/app/soapbox/features/status/components/detailed_status.js index 581c47ca7628e81d49856f88b4f650d18a9c89e1..1f0809132466a5292af034f28b423d08336d3247 100644 GIT binary patch delta 17 YcmdmHxx;e9MsAkm{Ji4Lo4J_<0Yan(i2wiq delta 15 WcmdmCxy^FJMsB8@)XiJDnFRqfsRgG1 diff --git a/app/soapbox/features/status/containers/detailed_status_container.js b/app/soapbox/features/status/containers/detailed_status_container.js index 668ba020fe46f3b95ad235daf6786434292ec0d8..cbe1d848550934056d879a5f0255b211732d22d7 100644 GIT binary patch delta 16 XcmX?Re8PA`JLlvJ{A`=MIjsc%J>LdD delta 15 WcmX?Me9U-5J10|4>gH}vTLAzw+y$Hf diff --git a/app/soapbox/features/status/index.js b/app/soapbox/features/status/index.js index 0a687b8557a4a4d97590c8341d13ce60345db20a..5bac4fff9d38cd48a25fb93491b5253307a31635 100644 GIT binary patch delta 32 ocmZpe#n?29al;&bj^zBj;u3|-l+8={4Y?>5al;&bj-1pIh0GKMh0RO&4Y`?eQa9g}(li19uY3xG diff --git a/app/soapbox/features/ui/components/column_loading.js b/app/soapbox/features/ui/components/column_loading.js index ce0685d5e3d18ee31f6577cecfeec5e8cf5ead7e..9d5ba9e55192abfb85dd9af63164ee80c6923f3c 100644 GIT binary patch delta 16 XcmeBR>tfsB#l(`FpI1EDhiMN0D^3M( delta 14 VcmeBT>tNg9#l)18I@ynD4*(#U1dRXy diff --git a/app/soapbox/features/ui/components/profile_dropdown.js b/app/soapbox/features/ui/components/profile_dropdown.js index b5162d9315be415b0893bdaefe02b40281e1e794..565be4e1052cd3c160320722c8d3ef34809ba31e 100644 GIT binary patch delta 17 YcmeB_@0Q>2i<>1mKd*T6AMRde06&fg2><{9 delta 15 WcmeB{@08#0i<>DYb@M;&USSj0g2|@reE(L!8 diff --git a/app/soapbox/features/video/index.js b/app/soapbox/features/video/index.js index ccc32057d28e76cea3ba865e6512b228083b9d3a..2b70d6db3b70359dbbabd3646a501e090270a749 100644 GIT binary patch delta 18 ZcmbQ)z&NvkaYKd#b53f>=4^>|>Ht9e2DktK delta 18 ZcmbQ)z&NvkaYKd#b6H~1=4^>|>Ht9`2D|_O diff --git a/app/soapbox/is_mobile.js b/app/soapbox/is_mobile.js index 4c7c23e20f8e74fc2b5d899d5102c07cfd5f5c65..c21e9c0e02b75ae0c5069bba76cfabd35f6a91d2 100644 GIT binary patch delta 17 YcmbQox`1_qG9ycJeqQlrRmMt205JRoCjbBd delta 15 WcmZ3$I*)aOG9yz?>SlGuN=5)BVFX10 diff --git a/app/soapbox/reducers/admin_log.js b/app/soapbox/reducers/admin_log.js index 874cab3734cc420ef7f1130b9b3b870123727073..7bf305877740ca1252632ba12ce1f0103f928ecc 100644 GIT binary patch delta 35 ocmdnMzJ+~*F{4;=eqM2jLS{;_f~`VytTmT{0!U=DD`Pej0Lw=T#{d8T delta 31 mcmdnOzJYy%F{4mUYKcN-O0j~iLUgP(mx4l0>Sj;IY$gDi{|N&C diff --git a/app/soapbox/reducers/notifications.js b/app/soapbox/reducers/notifications.js index c07507c58f4586be34310e7a170dc1d1c3eee4f6..6410383399e2b71a61e0b9b2db173094145735a5 100644 GIT binary patch delta 17 Ycmexw+-R~vmY*d#Kd*SRJpThO06a+sMgRZ+ delta 15 WcmZoP`ER^ImY*pnb+aP>11kd}eqQlr8-YZA06EA7+W-In delta 15 WcmbPlKi7VPl>k#t>SjBEM1BA){RH^{ diff --git a/app/soapbox/utils/accounts.js b/app/soapbox/utils/accounts.js index ce52a5562f7d16fb50821ce648002532d27e7d03..77e3f39976d50d7bac15f03e0c6b3b1e2515324c 100644 GIT binary patch delta 28 hcmbQuJD+#LB$nj-yyA^h3|PU8$@+{2lfSVp1pt4LRn%?X{uh4g1&;0si`%Wf&xS;9WIrQCN+6JvluH_ X(c~S>Dp1yaW)tR|)RN6&EHhXDBM~2G delta 90 zcmdlXxK40G7Bh2MV$tM$W-(JBt&px@t5BAhQ<|!muAr}AWNK>7r2rHtQb>YJB%w%5 UKESL3HsK|+35edTz%qjc0Lzpb*8l(j diff --git a/webpack/development.js b/webpack/development.js index 7af7964273f5a48a5ee999086787207d1c1bc427..10ed123aec90e10122cd7da037b2fa25ef3cc891 100644 GIT binary patch delta 17 ZcmaDO@J?XEEhd)a{Ji4LcbF!y0su$02V?*M delta 15 XcmaDS@J3+6EheU%)Xn#pCa?kkIY$P9 diff --git a/webpack/translationRunner.js b/webpack/translationRunner.js index 35f235128b0b0924be6e0e80578c7305befb8430..a4da53c57464e74293088947ba1ae1e9ec96c8e6 100644 GIT binary patch delta 63 zcmdmHaKK;#6Aw#reqQlp7M_1##%31Y`%LU0p%R6%$$x|-H!}*nW`an)6VhUVu%yIg F7y;EY703Vp delta 46 tcmX?Lu+3lt6Ax2P>SQ*ae?V$82k(6*5dE5;of$-b6VhS<(JJCHi~w