1.0.1 • Published 3 years ago

stylelint-disallow-vendor-prefix v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

stylelint-disallow-vendor-prefix

Disallow vendor prefixes for given properties

Installation

npm install stylelint-disallow-vendor-prefix --save-dev

Usage

// .stylelintrc
{
  "plugins": [
    "stylelint-disallow-vendor-prefix"
  ],
  "rules": {
    "plugin/stylelint-disallow-vendor-prefix":{ true,properties:["/transform/","animation/"] },
  }
}

The following patterns are considered violations:

.a{-webkit-transform-origin:top;-webkit-animation:myanim;}

Options

{true ,properties:["array", "of", "unprefixed properties", /or/, "/regex/"]}