stylelint-config-recommended-scss
Version: 
The recommended shareable SCSS config for Stylelint
54 lines (36 loc) • 2.24 kB
Markdown
# stylelint-config-recommended-scss
[](https://www.npmjs.com/package/stylelint-config-recommended-scss)
[](https://github.com/stylelint-scss/stylelint-config-recommended-scss/actions/workflows/test.yml?query=workflow%3ATests)
[](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
[](https://npmcharts.com/compare/stylelint-config-recommended-scss)
> The recommended shareable SCSS config for Stylelint.
This config:
- extends the [`stylelint-config-recommended` shared config](https://github.com/stylelint/stylelint-config-recommended) and configures its rules for SCSS
- bundles the [`stylelint-scss` plugin pack](https://github.com/stylelint-scss/stylelint-scss) and turns on its rules that check for possible errors
- bundles the [`postcss-scss` custom syntax](https://github.com/postcss/postcss-scss) and configures it
This config is extended by the [`stylelint-config-standard-scss` shared config](https://github.com/stylelint-scss/stylelint-config-standard-scss). That config is better suited to most users as it also turns on the stylistic rules in the [`stylelint-scss` plugin pack](https://github.com/stylelint-scss/stylelint-scss).
To see the rules that this config uses, please read the [config itself](/index.js).
## Installation
```shell
npm install --save-dev stylelint-config-recommended-scss
```
## Usage
Set your `stylelint` config to:
```json
{
  "extends": "stylelint-config-recommended-scss"
}
```
### Extending the config
Simply add a `"rules"` key to your config, then add your overrides and additions there.
For example, to turn off the `scss/at-if-no-null` rule:
```json
{
  "extends": "stylelint-config-recommended-scss",
  "rules": {
    "scss/at-if-no-null": null
  }
}
```
## [Changelog](CHANGELOG.md)
## [License](LICENSE)