Opininated, but simple, shareable Stylelint config
This config is built with the assumption that you're going to be using Prettier across your project, and want stylelint to provide style specific advice and respect Prettier's formatting. This config aims to share this in a simple, shareable config.
npm install --save-dev stylelint stylelint-config-starstuff
In your package.json
{
"stylelint": {
"extends": ["stylelint-config-starstuff"]
}
}
This config exports a varient specialized for projects using a CSS-in-JS library. To use it, set the following in your package.json
:
{
"stylelint": {
"extends": ["stylelint-config-starstuff/css-in-js"]
}
}
Copyright Kepler Sticka-Jones 2019-2022. Licensed ISC