@jpapini/stylelint-config
v1.1.9
Published
Custom Stylelint configuration for Tailwind CSS projects.
Downloads
147
Maintainers
Readme
Stylelint configuration
Custom Stylelint configuration for Tailwind CSS projects.
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/stylelint-config stylelint
- Edit your
package.json
file to include the following:
{
"scripts": {
"lint:stylelint": "stylelint --cache --cache-location node_modules/.cache/stylelint/.stylelintcache --allow-empty-input '**/*.css'",
"format:stylelint": "stylelint --cache --cache-location node_modules/.cache/stylelint/.stylelintcache --allow-empty-input --fix '**/*.css'"
},
"stylelint": {
"extends": "@jpapini/stylelint-config"
}
}
- Add a
.stylelintignore
file with the following content:
### Jetbrains IDEs ###
.idea
### Visual Studio Code ###
.vscode
### Dependencies ###
node_modules
.pnpm-store
### Cache ###
.turbo
### Compiled outputs ###
dist
generated
### Tests ###
coverage
### Temporary ###
old
Author
- Julien Papini [email protected]