@kcuf/stylelint-config
v0.1.4
Published
Shareable stylelint config.
Downloads
93
Readme
@kcuf/stylelint-config
A shareable stylelint config.
Install & Setup
pnpm add -D stylelint @kcuf/stylelint-config
In your .stylelintrc
:
{
"extends": "@kcuf/stylelint-config"
}
According to your project type, you can choose to extend:
@kcuf/stylelint-config
- React projects using css, less & styled-components (no scss)@kcuf/stylelint-config/config-css
- projects using only css@kcuf/stylelint-config/config-less
- projects using css & less@kcuf/stylelint-config/config-scss
- projects using css & scss@kcuf/stylelint-config/config-vue
- Vue projects using css, less & scss
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
.lintstagedrc
{
"*.{css,less,ts,tsx}": "stylelint"
}