2.0.1 • Published 10 months ago

@untile/stylelint-config-react v2.0.1

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

Installation

With npm:

npm install @untile/stylelint-config-react --save-dev

Or using yarn:

yarn add stylelint @untile/stylelint-config-react -D

You can install the peer dependencies manually or use this command to add them to you package.json:

npx install-peerdeps --dev @untile/stylelint-config-react

Setup

Create an .stylelintrc file with the following:

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

Usage

Add the following script to your package.json:

{
  "scripts": {
    "lint:styles": "stylelint './src/**/*.js'"
  }
}

and run the linter with:

yarn lint:styles

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

{
  "extends": "@untile/stylelint-config-react",
  "rules": {
    "your-rules-here"
  }
}