Sha256: 46e73db2a7e82269af4066164bd7b712b2d5297958d30f01dedf7792857acdaf

Contents?: true

Size: 796 Bytes

Versions: 24

Compression:

Stored size: 796 Bytes

Contents

# declaration-no-important

Disallow `!important` within declarations.

<!-- prettier-ignore -->
```css
a { color: pink !important; }
/**             ↑
 * This !important */
```

If you always want `!important` in your declarations, e.g. if you're writing [user styles](https://userstyles.org/), you can _safely_ add them using [`postcss-safe-important`](https://github.com/crimx/postcss-safe-important).

## Options

### `true`

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
a { color: pink !important; }
```

<!-- prettier-ignore -->
```css
a { color: pink ! important; }
```

<!-- prettier-ignore -->
```css
a { color: pink!important; }
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a { color: pink; }
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/declaration-no-important/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/declaration-no-important/README.md