2.1.2 • Published 9 months ago
@nharox/astro-stylelint-config v2.1.2
@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"]
}