1.0.1 • Published 27 days ago
@nharox/astro-stylelint-config v1.0.1
@nharox/astro-stylelint-config
Shared Stylelint config for Astro projects.
Installation
- Install package as a dev dependency
npm install --save-dev @nharox/astro-stylelint-config
- Update
package.json
{
// ...
"stylelint": {
"extends": "@nharox/astro-stylelint-config"
}
}
- Add the following script in your
package.json
{
// ...
"scripts": {
// ...
"stylelint": "stylelint --fix \"src/**/*.{astro,css}\""
}
}
- Update settings of VS Code:
{
// ...
"stylelint.validate": ["astro", "css", "postcss"]
}