@stackbit/stylelint-config

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @stackbit/stylelint-config

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

5.5 kB

Total Files

5

Last publish

Collaborators

  • bwwhite
  • bob_netlify
  • noahcrowley-netlify
  • seancdavis
  • merlyn_at_netlify
  • cmparsons
  • suzanneaitchison
  • stackbitjoe
  • arseny.gurevich
  • smnh
  • tomasb
  • berdav
  • stackbit-admin
  • vitaliyr
  • denar90
  • youvalv