Lint for unknown tags and turn off unknow attribute check (#19439)

This commit is contained in:
Steve Repsher 2024-01-18 08:30:59 -05:00 committed by GitHub
parent 7398c6ab3e
commit 9bad3c8101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -114,6 +114,7 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
<div class="content">
<div id="controls">
<div id="slider">
<!-- @ts-ignore Round-slider has no tag definition or exported type -->
<round-slider
min="1"
max="100"

View File

@ -31,9 +31,11 @@
"strict": true,
"rules": {
// Custom elements
"no-unknown-tag-name": "error",
"no-missing-import": "error",
"no-missing-element-type-definition": "error",
// Binding names
"no-unknown-attribute": "off",
"no-legacy-attribute": "error",
// Binding types
"no-incompatible-type-binding": "warning",
@ -42,7 +44,11 @@
"no-property-visibility-mismatch": "warning",
// CSS
"no-invalid-css": "off" // warning does not work
}
},
"globalTags": ["google-cast-launcher"],
"customHtmlData": [
"./node_modules/@lrnwebcomponents/simple-tooltip/custom-elements.json"
]
}
]
}