콘텐츠로 이동

noUnknownTypeSelector

이 콘텐츠는 아직 번역되지 않았습니다.

biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnknownTypeSelector": "error"
}
}
}
}

Disallow unknown type selectors.

This rule considers tags defined in the HTML, SVG, and MathML specifications to be known. For details on known CSS type selectors, see the following links

This rule allows custom elements.

unknown {}
code-block.css:1:1 lint/correctness/noUnknownTypeSelector ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unknown type selector is not allowed.

> 1 │ unknown {}
^^^^^^^
2 │

See MDN web docs for more details.

Consider replacing the unknown type selector with valid one.

unknown > ul {}
code-block.css:1:1 lint/correctness/noUnknownTypeSelector ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unknown type selector is not allowed.

> 1 │ unknown > ul {}
^^^^^^^
2 │

See MDN web docs for more details.

Consider replacing the unknown type selector with valid one.

x-Foo {}
code-block.css:1:1 lint/correctness/noUnknownTypeSelector ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unknown type selector is not allowed.

> 1 │ x-Foo {}
^^^^^
2 │

See MDN web docs for more details.

Consider replacing the unknown type selector with valid one.

input {}
ul > li {}
x-foo {}