1.0.1 • Published 27 days ago

@nharox/astro-stylelint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
27 days ago

@nharox/astro-stylelint-config

Shared Stylelint config for Astro projects.

Installation

  1. Install package as a dev dependency
npm install --save-dev @nharox/astro-stylelint-config
  1. Update package.json
{
  // ...
  "stylelint": {
    "extends": "@nharox/astro-stylelint-config"
  }
}
  1. Add the following script in your package.json
{
  // ...
  "scripts": {
    // ...
    "stylelint": "stylelint --fix \"src/**/*.{astro,css}\""
  }
}
  1. Update settings of VS Code:
{
  // ...
  "stylelint.validate": ["astro", "css", "postcss"]
}

Stylelint Configs