stylelint
Version:
A mighty, modern CSS linter.
64 lines (43 loc) • 689 B
Markdown
# selector-type-no-unknown
Disallow unknown type selectors.
```css
unknown {}
/** ↑
* This type selector */
```
This rule considers tags defined in the HTML and SVG Specifications to be known.
## Options
### `true`
The following patterns are considered warnings:
```css
unknown {}
```
```css
tag {}
```
The following patterns are *not* considered warnings:
```css
input {}
```
```css
ul li {}
```
```css
li > a {}
```
## Optional secondary options
### `ignoreTypes: ["/regex/", "string"]`
Given:
```js
["/^my-/", "custom-type"]
```
The following patterns are *not* considered warnings:
```css
custom-type {}
```
```css
my-type {}
```
```css
my-other-type {}
```