@shelf.network/stylelint-config

Shared stylelint config for shelf-network web apps and libraries.

Usage no npm install needed!

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

README

@shelf.network/stylelint-config

This is a shared config for Shelf.Network web apps and libraries. The config is based on eslint-config-standard with some tweaks for SCSS compability.

Add To Your Project

  1. Install styleling and the config:

    npm i -D stylelint@10.0.1 @shelf.network/stylelint-config
    
  2. Add the .stylelintrc file and extend the shared config

    {
      "extends": "@shelf.network/stylelint-config"
    }
    
  3. Add scripts to package.json

    {
      // ...
      "scripts": {
        // ...
        "stylelint": "stylelint \"src/**/*.{vue,scss}\"",
        "stylelintfix": "stylelint \"src/**/*.{vue,scss}\" --fix"
      }
    }