mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Lint for unknown tags and turn off unknow attribute check (#19439)
This commit is contained in:
parent
7398c6ab3e
commit
9bad3c8101
@ -114,6 +114,7 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div id="controls">
|
<div id="controls">
|
||||||
<div id="slider">
|
<div id="slider">
|
||||||
|
<!-- @ts-ignore Round-slider has no tag definition or exported type -->
|
||||||
<round-slider
|
<round-slider
|
||||||
min="1"
|
min="1"
|
||||||
max="100"
|
max="100"
|
||||||
|
@ -31,9 +31,11 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
// Custom elements
|
// Custom elements
|
||||||
|
"no-unknown-tag-name": "error",
|
||||||
"no-missing-import": "error",
|
"no-missing-import": "error",
|
||||||
"no-missing-element-type-definition": "error",
|
"no-missing-element-type-definition": "error",
|
||||||
// Binding names
|
// Binding names
|
||||||
|
"no-unknown-attribute": "off",
|
||||||
"no-legacy-attribute": "error",
|
"no-legacy-attribute": "error",
|
||||||
// Binding types
|
// Binding types
|
||||||
"no-incompatible-type-binding": "warning",
|
"no-incompatible-type-binding": "warning",
|
||||||
@ -42,7 +44,11 @@
|
|||||||
"no-property-visibility-mismatch": "warning",
|
"no-property-visibility-mismatch": "warning",
|
||||||
// CSS
|
// CSS
|
||||||
"no-invalid-css": "off" // warning does not work
|
"no-invalid-css": "off" // warning does not work
|
||||||
}
|
},
|
||||||
|
"globalTags": ["google-cast-launcher"],
|
||||||
|
"customHtmlData": [
|
||||||
|
"./node_modules/@lrnwebcomponents/simple-tooltip/custom-elements.json"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user