UNPKG

975 BMarkdownView Raw
1# Stylelint Config
2Standard configuration for [Stylelint](https://stylelint.io).
3
4**Why?** — We use Stylelint for quality control of our SCSS code.
5The standard Stylelint configurations ensure that we use the same rules across
6all our projects.
7
8At the moment a single Stylelint configuration is provided by the package:
9
10- [**`config/stylelint/default`**](#default) — Default Stylelint
11 configuration.
12
13Under the hood it matches the
14[standard Stylelint config](https://github.com/stylelint/stylelint-config-standard)
15with a few extra options to ignore some valid rules and selectors not known to
16Stylelint: `@content`, `@extend`, `@for`, `@include`, `@mixin`, `:global`.
17
18To use it, just create the following `.stylelintrc`:
19```json
20{
21 "extends": "./node_modules/topcoder-react-utils/config/stylelint/default.json"
22}
23```
24
25`.stylelintrc` allows you to further modify the standard configuration, but it
26is not recommended without a very good and special reason.