From 813811ec89ae4580cb6640324f010754d20dff39 Mon Sep 17 00:00:00 2001 From: Max Morgan Date: Fri, 13 Oct 2023 14:42:39 -0400 Subject: [PATCH] Fix lints in icon element --- src/components/atoms/Icon/Icon.js | 49 +------------------------------ 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/src/components/atoms/Icon/Icon.js b/src/components/atoms/Icon/Icon.js index 228cda2d..f003e042 100644 --- a/src/components/atoms/Icon/Icon.js +++ b/src/components/atoms/Icon/Icon.js @@ -2,7 +2,6 @@ export default class Icon extends HTMLElement { constructor() { // Always call super first in constructor super(); - // Create a shadow root. this.attachShadow({ mode: 'open' }); } @@ -13,9 +12,7 @@ export default class Icon extends HTMLElement { } // Icon attributes - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line prefer-const - let icon = this.getAttribute('data-icon'); + const icon = this.getAttribute('data-icon'); let size = this.getAttribute('data-size'); switch (size) { case 'small': @@ -73,106 +70,62 @@ export default class Icon extends HTMLElement { `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'house-fill': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'exclamation-circle': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'exclamation-circle-fill': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'exclamation-triangle': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'check-circle': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'check-circle-fill': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'calendar': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'calendar-fill': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'calendar-date': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - case 'calendar-date-fill': return ` `; - // TODO: See CityOfDetroit/detroitmi#1099 - // eslint-disable-next-line no-unreachable - break; - default: break; }