2.0.0 • Published 1 year ago

stylelint-config-sensible-scss v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

stylelint-config-sensible-scss

The sharable Scss config for Stylelint with sensible defaults

Installation

$ npm install --save-dev stylelint-config-sensible-scss

Usage

Set your Stylelint config to:

{
    "extends": "stylelint-config-sensible-scss"
}

Extending the config

Add a "rules" key to your config and add your overrides there.

To change color-hex-length to "long", turn off the block-no-empty rule and add the unit-whitelist rule:

{
    "extends": "stylelint-config-sensible-scss",
    "rules": {
        "block-no-empty": null,
        "color-hex-length": "long",
        "unit-whitelist": ["em", "rem"]
    }
}

Documentation

Plugins

Configured lints

This is a list of the lints turned on in this configuration, and what they do.

At-rule

Color

Declaration block

Declaration Property

  • declaration-property-value-blacklist: Specify a blacklist of disallowed property and value pairs within declarations.
    • ^border: Disallow the use of the word none for borders, use 0 instead.

General

Property

Selector

Value

SCSS

Order

  • order/order: Order of content within declaration blocks. custom-properties (--property: 10px;), then dollar-variables ($variable), then declarations
  • order/properties-order: Order of properties within declaration blocks.

Changelog

License

2.0.0

1 year ago

1.3.1

2 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago