1.0.1 • Published 1 year ago
@lympid/stylelint-config-lympid v1.0.1
stylelint-config-lympid
Lympid stylelint config.
This configuration was created for react environment using styled-components, however it can be applied in other contexts.
Installation
npm install "stylelint^13.10.0" @lympid/stylelint-config-lympid --save-devUsage
Create an .stylelintrc file with the following:
{
"extends": ["@lympid/stylelint-config-lympid"]
}Add the following script to your package.json:
{
"scripts": {
"lint-styles": "stylelint './src/**/*.js'",
}
}and run the linter with:
npm run lint-stylesExtending the config
Simply add a "rules" key to your config, then add your overrides and additions there.
{
"extends": "@lympid/stylelint-config-lympid",
"rules": {
"your-rules-here"
}
}1.0.1
1 year ago