0.4.0 • Published 4 years ago

stylelint-itcss v0.4.0

Weekly downloads
879
License
MIT
Repository
github
Last release
4 years ago

stylelint-itcss

Greenkeeper badge Version on npm Build Status

Installation and usage

npm install --save-dev stylelint stylelint-itcss
//
yarn add --dev stylelint stylelint-itcss

Create the .stylelintrc.json config file (or open the existing one), add stylelint-itcss to the plugins array and the rules you need to the rules list. All rules from stylelint-itcss need to be namespaced with itcss.

Please refer to stylelint docs for the detailed info on using this linter.

Rules

⚠️ All rules are "strict" be default, but all rules accept an option ignoreLayers to disable them for specific layer(s) (there's a detailed explanation for each layers in this article).

Rule IDDescription
no-at-importantDisallow the use of !important
no-variable-declarationDisallow the declaration of variables
no-mixin-declarationDisallow the declaration of mixins (SASS only)