Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2017 at 15:44 UTC
Updated:
26 Oct 2017 at 07:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
GrandmaGlassesRopeManComment #3
GrandmaGlassesRopeManComment #4
dawehnerIMHO the $i could be initialized as const later
$i = $(i);... Should we do that instead?There is some weird code going on if you look at it with more context, ¯\_(ツ)_/¯
Comment #5
GrandmaGlassesRopeMan@dawehner
Yep. I saw both of those when going through these changes. I opted not to actually fix the larger issues to avoid introducing any regressions. I can file a followup to add the 'no-case-declarations' to the ignore list.
Comment #6
dawehnerFair point, do you mind creating these follow ups?
Comment #7
GrandmaGlassesRopeMan#2915263: Exclude eslint rule no-case-declarations
Comment #8
droplet commentedWhy not fix it together? `no-case-declarations` helping you to understand const/let/var scope around that switch.
Comment #9
droplet commentedand I checkout the patch locally. I think @dawehner's point 1 should do it together when it's a trivial change. We better to fix it to final, not introduce another bug, haha (Another new bug might get fixed on another patch :p, no more reroll)
Comment #10
GrandmaGlassesRopeManYeah, ok. Easy enough. 👍👏
Comment #12
GrandmaGlassesRopeMan🤷♀️
Comment #13
GrandmaGlassesRopeManComment #14
dawehnerDon't we want to have the second rule removed from here as well?
Comment #16
GrandmaGlassesRopeManComment #17
dawehnerThe testbots had a bit of a quickup.
No errors are left:
In #4 I went through all the instances and checked whether const/let was applied correctly, and just found the instances above.
Comment #18
lauriiiComment #19
droplet commentedI help @drpal reroll it quick. Fixes `core/.eslintrc.passing.json` conflicts. (no credits to me :p)
Comment #20
droplet commentedComment #21
GrandmaGlassesRopeMan@droplet Literally seconds before me. 🤘
Comment #22
dawehnerBack to RTBC
Comment #23
lauriiiCommitted 29cd930 and pushed to 8.5.x. Thanks!