Sha256: e965c4a1fa28bdeb6fa157ac0a2077fcdb920f24931b3e504f34d0902eefd477

Contents?: true

Size: 1.5 KB

Versions: 23

Compression:

Stored size: 1.5 KB

Contents

# property-no-vendor-prefix

Disallow vendor prefixes for properties.

<!-- prettier-ignore -->
```css
a { -webkit-transform: scale(1); }
/**  ↑
 * This prefix */
```

This rule does not blanketly condemn vendor prefixes. Instead, it uses [Autoprefixer's](https://github.com/postcss/autoprefixer) up-to-date data (from [caniuse.com](http://caniuse.com/)) to know whether a vendor prefix should cause a violation or not. _If you've included a vendor prefixed property that has a standard alternative, one that Autoprefixer could take care of for you, this rule will complain about it_. If, however, you use a non-standard vendor-prefixed property, one that Autoprefixer would ignore and could not provide (such as `-webkit-touch-callout`), this rule will ignore it.

## Options

### `true`

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
a { -webkit-transform: scale(1); }
```

<!-- prettier-ignore -->
```css
a { -moz-columns: 2; }
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a { transform: scale(1); }
```

<!-- prettier-ignore -->
```css
a {
columns: 2; }
```

<!-- prettier-ignore -->
```css
a { -webkit-touch-callout: none; }
```

## Optional secondary options

### `ignoreProperties: ["/regex/", /regex/, "string"]`

Given:

```
["transform", "columns"]
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a { -webkit-transform: scale(1); }
```

<!-- prettier-ignore -->
```css
a { -moz-columns: 2; }
```

Version data entries

23 entries across 23 versions & 1 rubygems

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