Seegno-flavored stylelint config. This configuration was created for react environment using styled-components, however it can be applied in other contexts.
npm install "stylelint^13.10.0" stylelint-config-seegno --save-dev
Create an .stylelintrc
file with the following:
{
"extends": ["stylelint-config-seegno"]
}
Add the following script
to your package.json
:
{
"scripts": {
"lint-styles": "stylelint './src/**/*.js'",
}
}
and run the linter with:
npm run lint-styles
Simply add a "rules"
key to your config, then add your overrides and additions there.
{
"extends": "stylelint-config-seegno",
"rules": {
"your-rules-here"
}
}