Skip to content

zhilidali/stylelint-config-tailwindcss

Repository files navigation

stylelint-config-tailwindcss

NPM version

tailwindcss shareable config for stylelint

Installation

npm install stylelint-config-tailwindcss --save-dev

Usage

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"
  ]
}

License

MIT License