Sha256: 653993e05a57c8dfa3f031cf1e32d8941fbb3c49794b97ef220a2b1c6242dea8

Contents?: true

Size: 986 Bytes

Versions: 23

Compression:

Stored size: 986 Bytes

Contents

# at-rule-property-requirelist

Specify a requirelist of properties for an at-rule.

<!-- prettier-ignore -->
```css
    @font-face { font-display: swap; font-family: 'foo'; }
/**  ↑           ↑                   ↑
 *  At-rule and required property names */
```

## Options

`object`: `{ "at-rule-name": ["array", "of", "properties"] }`

Given:

```
{
  "font-face": ["font-display", "font-family", "font-style"]
}
```

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
@font-face {
    font-family: 'foo';
    src: url('./fonts/foo.woff2') format('woff2');
}
```

<!-- prettier-ignore -->
```css
@font-face {
    font-family: 'foo';
    font-style: normal;
    src: url('./fonts/foo.woff2') format('woff2');
}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
@font-face {
    font-display: swap;
    font-family: 'foo';
    font-style: normal;
    src: url('./fonts/foo.woff2') format('woff2');
}
```

Version data entries

23 entries across 23 versions & 1 rubygems

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