Bump babel and eslint (#9049)

This commit is contained in:
Bram Kragten
2021-04-30 21:15:31 +02:00
committed by GitHub
parent d4118ade0f
commit 5754f4463d
244 changed files with 1814 additions and 2804 deletions

View File

@@ -36,12 +36,8 @@ class HaAttributes extends LitElement {
).map(
(attribute) => html`
<div class="data-entry">
<div class="key">
${formatAttributeName(attribute)}
</div>
<div class="value">
${this.formatAttribute(attribute)}
</div>
<div class="key">${formatAttributeName(attribute)}</div>
<div class="value">${this.formatAttribute(attribute)}</div>
</div>
`
)}
@@ -92,9 +88,9 @@ class HaAttributes extends LitElement {
if (!this.stateObj) {
return [];
}
return Object.keys(this.stateObj.attributes).filter((key) => {
return filtersArray.indexOf(key) === -1;
});
return Object.keys(this.stateObj.attributes).filter(
(key) => filtersArray.indexOf(key) === -1
);
}
private formatAttribute(attribute: string): string | TemplateResult {