vio / stylelint-known-property

Stylelint plugin to check if the css properties are valid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylelint-known-property

Stylelint plugin to check if the css properties are valid (CSS2 & CSS3).

Options

ignore: string | array

Provide a property or a list of properties that will not be checked.

Install

npm install -D stylelint-known-property

Usage

Add the plugin to your Stylelint config:

{
  "plugins": [
    "stylelint-known-property"
  ],

  "rules": {
    "plugin/known-property": true
  }
}

With ignored properties:

{
  "plugins": [
    "stylelint-known-property"
  ],

  "rules": {
    "plugin/known-property": [true, {
      ignore: ['fill']
    }
  }
}

CSS Properties

CSS properties are validated based on known-css-properties list.

About

Stylelint plugin to check if the css properties are valid


Languages

Language:JavaScript 100.0%