@dczajkowski/stylelint-rules

0.0.8 • Public • Published

@dczajkowski/stylelint-rules

This is a stylelint plugin that provides several stylelint rules that are not available out of the box.

Installation

npm i @dczajkowski/stylelint-rules --save-dev # yarn add -D @dczajkowski/stylelint-rules

In your .stylelintrc config:

{
  "plugins": ["@dczajkowski/stylelint-rules"],
  "rules": {

  }
}

Available Rules

auto-fixable? Rule Name Description
declaration-property-unit-whitelist Require specific properties to have only given units
color-no-non-variables Disallow usage of color literals (allows only variables)
no-floats-with-unit Disallow usage of floats with certain units
variables-in-files Allow for variables to be declared only in specified files
color-variables-in-files Allow for variables containing color values to be declared only in specified files

License

This plugin is an open-sourced software licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @dczajkowski/stylelint-rules

Weekly Downloads

10

Version

0.0.8

License

MIT

Unpacked Size

18.8 kB

Total Files

21

Last publish

Collaborators

  • dczajkowski