@kcuf/stylelint-config
v0.0.1
Published
Shareable stylelint config.
Downloads
4
Readme
@kcuf/stylelint-config
A shareable markdown lint config, which can be used with stylelint
.
Inherit
@kcuf/stylelint-config
← stylelint-config-standard
← stylelint-config-recommended
With plugins stylelint-order
, more plugins can be found at awesome-stylelint#plugins.
Install & Setup
pnpm add -D stylelint @kcuf/stylelint-config
In your .stylelintrc
:
{
"extends": "@kcuf/stylelint-config"
}
Usage
Terminal
npx stylelint ./path/to/some-css.css
npx stylelint ./path/to/some-less.less
npm-scripts
npm pkg set scripts.lint:style="stylelint \"**/src/**/*.{css,less}\""
With lint-staged
{
"lint-staged": {
"*.{css,less}": "stylelint"
}
}