tailwindcss shareable config for stylelint
npm install stylelint-config-tailwindcss --save-dev
set your stylelint config to:
{
"extends": [
"stylelint-config-recommended",
+ "stylelint-config-tailwindcss"
]
}
If you use stylelint-config-sass-guidelines
or similar packages, you can use the following configuration to support rules such as scss/at-rule-no-unknown
.
{
"extends": [
"stylelint-config-recommended",
+ "stylelint-config-tailwindcss/scss"
]
}