Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-config-standard-scss

stylelint-scss6.8mMIT14.0.0

The standard shareable SCSS config for Stylelint

stylelint, stylelint-config, standard, scss

readme

stylelint-config-standard-scss

npm version Build Status contributions welcome Downloads per month

The standard shareable SCSS config for Stylelint.

This config:

To see the rules that this config uses, please read the config itself.

Installation

npm install --save-dev stylelint-config-standard-scss

Usage

Set your stylelint config to:

{
  "extends": "stylelint-config-standard-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/dollar-variable-pattern rule:

{
  "extends": "stylelint-config-standard-scss",
  "rules": {
    "scss/dollar-variable-pattern": null
  }
}

Changelog

License

changelog

14.0.0

13.1.0

  • Changed: scss/dollar-variable-colon-space-after from always to always-single-line to be compatible with the default formatting of Prettier.

13.0.0

12.0.0

11.1.0

11.0.0

10.0.0

9.0.0

8.0.0

7.0.1

  • Fixed: remove deprecated rule block-closing-brace-newline-after (#68).

7.0.0

6.1.0

  • Added: postcss as an optional peer dependency.

6.0.0

5.0.0

4.0.0

3.0.0

2.0.1

  • Fixed: allow private Sass variables when using kebab case.

2.0.0

This release adds over a dozen new rules.

If needed, you can extend the config to turn off any of the new rules.

  • Removed: stylelint less than 14.0.0 from peer dependencies.
  • Changed: updated to stylelint-config-recommended-scss@5.0.0.
  • Changed: updated to stylelint-config-standard@23.0.0.
  • Added: scss/at-else-closing-brace-newline-after rule.
  • Added: scss/at-else-closing-brace-space-after rule.
  • Added: scss/at-else-empty-line-before rule.
  • Added: scss/at-else-if-parentheses-space-before rule.
  • Added: scss/at-function-parentheses-space-before rule.
  • Added: scss/at-function-pattern rule.
  • Added: scss/at-if-closing-brace-newline-after rule.
  • Added: scss/at-if-closing-brace-space-after rule.
  • Added: scss/at-mixin-argumentless-call-parentheses rule.
  • Added: scss/at-mixin-parentheses-space-before rule.
  • Added: scss/at-mixin-pattern rule.
  • Added: scss/at-rule-conditional-no-parentheses rule.
  • Added: scss/dollar-variable-colon-space-after rule.
  • Added: scss/dollar-variable-colon-space-before rule.
  • Added: scss/dollar-variable-empty-line-before rule.
  • Added: scss/dollar-variable-pattern rule.
  • Added: scss/double-slash-comment-empty-line-before rule.
  • Added: scss/double-slash-comment-whitespace-inside rule.
  • Added: scss/percent-placeholder-pattern rule.

1.1.0

  • Updated peerDependencies to include stylelint@10

1.0.0

  • Initial release