1.2.0 • Published 5 years ago

@stackbit/stylelint-config v1.2.0

Weekly downloads
75
License
MIT
Repository
github
Last release
5 years ago

stylelint-config NPM version

Stackbit's shareable config for stylelint

Installation

Install stylelint and @stackbit/stylelint-config:

npm install --save-dev stylelint @stackbit/stylelint-config

Prettier

@stackbit/eslint-config should be used in conjunction with Prettier. See the @stackbit/prettier-config installation guide for more details.

Usage

Stackbit's stylelint rules come bundled in @stackbit/stylelint-config. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.

"stylelint": {
  "extends": ["@stackbit/stylelint-config"]
}

Now you can run stylelint by adding the following scripts to your package.json. See the stylelint CLI docs for more details.

"scripts": {
  "lint:css": "stylelint '**/*.{css,scss}'",
  "format:css": "npm run lint:css -- --fix"
}

Lint it:

npm run lint:css

Format it:

npm run format:css

CHANGELOG

LICENSE