mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fix lit/no-invalid-html (#5617)
This commit is contained in:
parent
e10987a705
commit
bf55be7f7f
@ -2,36 +2,10 @@ build
|
|||||||
build-translations/*
|
build-translations/*
|
||||||
translations/*
|
translations/*
|
||||||
node_modules/*
|
node_modules/*
|
||||||
npm-debug.log
|
|
||||||
.DS_Store
|
|
||||||
hass_frontend/*
|
hass_frontend/*
|
||||||
.reify-cache
|
|
||||||
demo/hademo-icons.html
|
demo/hademo-icons.html
|
||||||
|
|
||||||
# Python stuff
|
|
||||||
*.py[cod]
|
|
||||||
*.egg
|
|
||||||
*.egg-info
|
|
||||||
|
|
||||||
# venv stuff
|
|
||||||
pyvenv.cfg
|
|
||||||
pip-selfcheck.json
|
pip-selfcheck.json
|
||||||
venv
|
|
||||||
.venv
|
|
||||||
lib
|
|
||||||
bin
|
|
||||||
dist
|
|
||||||
|
|
||||||
# vscode
|
# vscode
|
||||||
.vscode/*
|
.vscode/*
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
|
||||||
# Cast dev settings
|
|
||||||
src/cast/dev_const.ts
|
|
||||||
|
|
||||||
# Secrets
|
|
||||||
.lokalise_token
|
|
||||||
yarn-error.log
|
|
||||||
|
|
||||||
#asdf
|
|
||||||
.tool-versions
|
|
||||||
|
10
package.json
10
package.json
@ -8,12 +8,12 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "script/build_frontend",
|
"build": "script/build_frontend",
|
||||||
"lint:eslint": "eslint '{**/src,src}/**/*.{js,ts,html}' --ignore-path .gitignore",
|
"lint:eslint": "eslint '**/src/**/*.{js,ts,html}' --ignore-path .gitignore",
|
||||||
"format:eslint": "eslint '{**/src,src}/**/*.{js,ts,html}' --fix --ignore-path .gitignore",
|
"format:eslint": "eslint '**/src/**/*.{js,ts,html}' --fix --ignore-path .gitignore",
|
||||||
"lint:prettier": "prettier '{**/src,src}/**/*.{js,ts,json,css,md}' --check",
|
"lint:prettier": "prettier '**/src/**/*.{js,ts,json,css,md}' --check",
|
||||||
"format:prettier": "prettier '{**/src,src}/**/*.{js,ts,json,css,md}' --write",
|
"format:prettier": "prettier '**/src/**/*.{js,ts,json,css,md}' --write",
|
||||||
"lint:types": "tsc",
|
"lint:types": "tsc",
|
||||||
"lint:lit": "lit-analyzer '{**/src,src}/**/*.ts'",
|
"lint:lit": "lit-analyzer '**/src/**/*.ts'",
|
||||||
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:types",
|
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:types",
|
||||||
"format": "npm run format:eslint && npm run format:prettier",
|
"format": "npm run format:eslint && npm run format:prettier",
|
||||||
"mocha": "node_modules/.bin/ts-mocha -p test-mocha/tsconfig.test.json --opts test-mocha/mocha.opts",
|
"mocha": "node_modules/.bin/ts-mocha -p test-mocha/tsconfig.test.json --opts test-mocha/mocha.opts",
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable lit/no-invalid-html */
|
|
||||||
import { HassEntity, UnsubscribeFunc } from "home-assistant-js-websocket";
|
import { HassEntity, UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||||
import {
|
import {
|
||||||
css,
|
css,
|
||||||
@ -96,7 +95,7 @@ export class HaRelatedItems extends SubscribeMixin(LitElement) {
|
|||||||
)}:
|
)}:
|
||||||
</h3>
|
</h3>
|
||||||
<a
|
<a
|
||||||
href="/config/integrations#config_entry=${relatedConfigEntryId}"
|
href=${`/config/integrations#config_entry=${relatedConfigEntryId}`}
|
||||||
@click=${this._close}
|
@click=${this._close}
|
||||||
>
|
>
|
||||||
${this.hass.localize(`component.${entry.domain}.title`)}:
|
${this.hass.localize(`component.${entry.domain}.title`)}:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable lit/no-invalid-html */
|
|
||||||
import "@polymer/app-route/app-route";
|
import "@polymer/app-route/app-route";
|
||||||
import { UnsubscribeFunc } from "home-assistant-js-websocket";
|
import { UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||||
import {
|
import {
|
||||||
@ -288,7 +287,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
${devices.length
|
${devices.length
|
||||||
? html`
|
? html`
|
||||||
<a
|
<a
|
||||||
href="/config/devices/dashboard?historyBack=1&config_entry=${item.entry_id}"
|
href=${`/config/devices/dashboard?historyBack=1&config_entry=${item.entry_id}`}
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_entry.devices",
|
"ui.panel.config.integrations.config_entry.devices",
|
||||||
"count",
|
"count",
|
||||||
@ -303,7 +302,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
${entities.length
|
${entities.length
|
||||||
? html`
|
? html`
|
||||||
<a
|
<a
|
||||||
href="/config/entities?historyBack=1&config_entry=${item.entry_id}"
|
href=${`/config/entities?historyBack=1&config_entry=${item.entry_id}`}
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_entry.entities",
|
"ui.panel.config.integrations.config_entry.entities",
|
||||||
"count",
|
"count",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user