@jpapini/stylelint-config
Version:
Custom Stylelint configuration for Tailwind CSS projects.
57 lines (40 loc) • 1.03 kB
Markdown
Custom Stylelint configuration for Tailwind CSS projects.
1. Install the package and its required peer dependencies:
```bash
pnpm add -D @jpapini/stylelint-config stylelint
```
2. Edit your `package.json` file to include the following:
```json
{
"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"
}
}
```
3. Add a `.stylelintignore` file with the following content:
```text
.idea
.vscode
node_modules
.pnpm-store
.turbo
dist
generated
coverage
old
```
- Julien Papini <julien.papini@gmail.com>