Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jun 22, 2020
1 parent 108f6c0 commit d58f32c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WCBlink extends HTMLElement {
}
</style>
<p class="blink" style="width: inherit;"><span><slot></slot></span></p>
`;
`
}
}

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
"devDependencies": {
"esmtk": "^0.1.1",
"rollup-plugin-terser": "^5.2.0"
},
"standard": {
"ignore": [
"index.js"
]
}
}
14 changes: 7 additions & 7 deletions src/wc-blink.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand All @@ -27,8 +27,8 @@ export class WCBlink extends HTMLElement {
}
</style>
<p class="blink" style="width: inherit;"><span><slot></slot></span></p>
`;
`
}
}

customElements.define('wc-blink', WCBlink);
customElements.define('wc-blink', WCBlink)

0 comments on commit d58f32c

Please sign in to comment.