@blueberrypie/stylelint-config

Shared configuration for Stylelint

Usage no npm install needed!

<script type="module">
  import blueberrypieStylelintConfig from 'https://cdn.skypack.dev/@blueberrypie/stylelint-config';
</script>

README

@blueberrypie/stylelint-config

Installation

  1. Install:
npm install --save-dev stylelint @blueberrypie/stylelint-config
  1. Add the following to package.json:
{
  "scripts": {
    "fix:styles": "stylelint \"**/*.css\" --ignore-path .lintignore --cache --fix",
    "lint:styles": "stylelint \"**/*.css\" --ignore-path .lintignore --max-warnings 0 --cache"
  },
  "stylelint": {
    "extends": "@blueberrypie/stylelint-config"
  }
}
  1. Add the following to .lintignore, adjusted as needed:
build/