stylelint-plugin-property
v1.3.1
Published
Stylelint plugin for managing arbitrary properties. Includes Less and Sass support.
Downloads
37,838
Maintainers
Readme
Stylelint Plugin Property
Stylelint plugin for managing arbitrary properties.
Rules
Go to each rule's page (click on the name below) to see specific details.
| Rule | auto-fix |
| ---------------------------------- | ---------- |
| plugin-property/block-properties
| no ✗ |
Rule Options
Object input with exceptions. At least one of
properties
ordetailedProperties
must be defined.{ "mode": "block", // optional: list of property names that are outright blocked properties: ['float'], // optional: list of properties with exceptions detailedProperties: [ { property: 'font-family', // For the exception to pass on any given occurrence, "selectors" must match one of // the selectors for the rule in question AND the value assigned to the property // must match at least one of the values below. // This is essentially an AND operation. For the equivalent OR operation, add more // entries to the detailedProperties array for the same property name. exceptions: { values: ['inherit', 'unset'], selectors: ['input', 'select'] } } ], // optional input // these use glob matching with globstar turned ON "fileExceptions": [ "**/*colors.less", // ignores any files ending in colors.less in any directory "*colors.less" // ignore files ending in colors.less only in the current directory ], // optional input // these use glob matching with globstar turned OFF "lineExceptions": [ "*colors*", // ignores all lines that include the word colors "@import 'colors'" // ignores all lines that are exactly this string (don't include semicolons) ], }
Everywhere in
properties
ordetailedProperties
wherestring
is allowed, so isRegExp
.