0.1.1 • Published 9 months ago

@infinumrails/stylelint-config-scss v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

stylelint-config-scss

Shareable config for linting SCSS with Stylelint.

Setup

Add stylelint, postcss and @infinumrails/stylelint-config-scss to your (dev) dependencies:

yarn add --dev stylelint postcss @infinumrails/stylelint-config-scss

Add the following to package.json:

{
  "scripts": {
    "lint-css": "stylelint"
  },
  "stylelint": {
    "extends": "@infinumrails/stylelint-config-scss"
  }
}

Run yarn lint-css [directory] to lint (S)CSS code. Run yarn lint-css --fix [directory] to automatically fix found offenses.