From d58f32c0353f6c768971f682295e68121150f1a0 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 22 Jun 2020 12:45:05 -0600 Subject: [PATCH] Lint --- index.js | 2 +- package.json | 5 +++++ src/wc-blink.js | 14 +++++++------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index dfa34d3..14690a0 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ class WCBlink extends HTMLElement { } - `; + ` } } diff --git a/package.json b/package.json index aae048c..2ebda3b 100644 --- a/package.json +++ b/package.json @@ -24,5 +24,10 @@ "devDependencies": { "esmtk": "^0.1.1", "rollup-plugin-terser": "^5.2.0" + }, + "standard": { + "ignore": [ + "index.js" + ] } } diff --git a/src/wc-blink.js b/src/wc-blink.js index 7c16e6a..b591325 100644 --- a/src/wc-blink.js +++ b/src/wc-blink.js @@ -1,11 +1,11 @@ /* eslint no-undef: 0 */ export class WCBlink extends HTMLElement { constructor () { - super(); - const template = document.createElement('template'); - template.innerHTML = WCBlink.template(); - this.attachShadow({ mode: 'open' }); - this.shadowRoot.appendChild(document.importNode(template.content, true)); + super() + const template = document.createElement('template') + template.innerHTML = WCBlink.template() + this.attachShadow({ mode: 'open' }) + this.shadowRoot.appendChild(document.importNode(template.content, true)) } static template () { @@ -27,8 +27,8 @@ export class WCBlink extends HTMLElement { } - `; + ` } } -customElements.define('wc-blink', WCBlink); +customElements.define('wc-blink', WCBlink)