Sha256: b5fdc718fca98912d579c11ea1b899707578117513746afe6041629bf3f8de57

Contents?: true

Size: 1014 Bytes

Versions: 23

Compression:

Stored size: 1014 Bytes

Contents

# media-feature-name-whitelist

Specify a whitelist of allowed media feature names.

<!-- prettier-ignore -->
```css
@media (min-width: 700px) {}
/**     ↑
 * This media feature name */
```

## Options

`array|string|regex`: `["array", "of", "unprefixed", /media-features/ or "regex"]|"media-feature"|/regex/`

Given:

```
["max-width", "/^my-/"]
```

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
@media (min-width: 50em) {}
```

<!-- prettier-ignore -->
```css
@media print and (min-resolution: 300dpi) {}
```

<!-- prettier-ignore -->
```css
@media (min-width < 50em) {}
```

<!-- prettier-ignore -->
```css
@media (10em < min-width < 50em) {}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
@media (max-width: 50em) {}
```

<!-- prettier-ignore -->
```css
@media (my-width: 50em) {}
```

<!-- prettier-ignore -->
```css
@media (max-width > 50em) {}
```

<!-- prettier-ignore -->
```css
@media (10em < my-width < 50em) {}
```

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md
trusty-cms-4.1.8 node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md