Skip to content
A stylelint plugin to enforce ITCCS architecture
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.codebeatignore
.gitignore
.npmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
ava.config.js
commitlint.config.js
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

stylelint-itcss

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 ID Description
no-at-important Disallow the use of !important
no-variable-declaration Disallow the declaration of variables
no-mixin-declaration Disallow the declaration of mixins (SASS only)
You can’t perform that action at this time.