12.1.0 • Published 8 months ago

stylelint-config-sass-guidelines v12.1.0

Weekly downloads
155,122
License
MIT
Repository
github
Last release
8 months ago

stylelint-config-sass-guidelines

NPM version Build Status Known Vulnerabilities contributions welcome Downloads per month

A stylelint config inspired by sass-guidelin.es.

This linter has been designed / tested with SCSS syntax based on the SCSS guidelines documented in https://sass-guidelin.es/. It is intended for use with SCSS syntax, not Sass (tab style) syntax.

This config:

Installation

Using NPM

$ npm i -D stylelint postcss stylelint-config-sass-guidelines

Using Yarn

$ yarn add -D stylelint postcss stylelint-config-sass-guidelines

Using PNPM

$ pnpm add -D stylelint postcss stylelint-config-sass-guidelines

Usage

Set your stylelint config to:

{
  "extends": "stylelint-config-sass-guidelines"
}

Extending the config

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

For example:

{
  "extends": "stylelint-config-sass-guidelines",
  "rules": {
    "selector-max-compound-selectors": 4,
    "value-no-vendor-prefix": false
  }
}

Documentation

Configured lints

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

At-Rule

Block

Color

Declaration Block

Declaration Property

  • declaration-property-value-disallowed-list: Specify a list of disallowed property and value pairs within declarations.
    • ^border: Disallow the use of the word none for borders, use 0 instead. The intent of this rule is to enforce consistency, rather than define which is "better."

Function

General

Media Feature

Property

Rule

  • rule-empty-line-before: There must always be an empty line before multi-line rules. Except: Nested rules that are the first of their parent rule. Ignore: Rules that come after a comment.

SCSS

Selector

Stylistic

Value

Changelog

Contributors

stylelint-config-sass-guidelines is maintained by Brett Jankord and contributions from the community. Without the code contributions from all these fantastic people, stylelint-config-sass-guidelines would not exist.

License

@she11sh0cked/stylelint-config@critto/styles@maiscrm/stylelint-config-frontend@defencedigital/r2d2-lint-configupd4ting-stylelint-configurationvigoworks.components@dnb-hugo/stylelint-configstylelint-config-airkroglue-js-documentation-builder@dnb-org/stylelint-config@everything-registry/sub-chunk-2842starter-projecttheyoxy-stylelint-configuration@dse.e/scss@code-style/stylelint-config-scss@defencedigital/react-lint-config@pazurite/stylelint-config@petchkubbb/eslint-config-petchkubbbjekyll-react-webpackquick-react-starterstylelint-config-coldfrontstylelint-config-coralloystylelint-config-customstylelint-config-idiomatic-sassstylelint-config-manpackerstylelint-config-massstylelint-config-lightstylelint-config-nosolosoftwarestylelint-config-nebulastylelint-suitcss-rulesstylelint-config-baselinestylelint-config-vshiftstylelint-config-vynylstylelint-config-zoniastylelint-config-terrastylelint-config-strict-modestylelint-config-rowupperstylelint-config-saritasa-basestylelint-config-sass-mfvstylelint-config-scorumstylelint-config-so-prettysprint-scriptsstatic-scriptstz-test-webpackucd-theme-tasks@amjs/vue-tools@aligent/stylelint-config@aligent/stylelint-preset@betgames/stylelint-config@byhuz/eslint-config-ui@chromatix/stylelint-config-chromatix@chrisaguilar/stylelint-config@chec/stylelint-config@cerner/stylelint-config-terra@0x6368656174/wp-builder@3angletech/tslint@adhamu/zero@a-ogilvie/eslint-config@deviltea/stylelint-config-scss@davidsneighbour/configyjrcli-envwebfactory-gulp-preset@ecl/stylelint-config@dudeofawesome/stylelint-config-scss@headstorm/hs-angular-ui@he11/core@hjtech/stylelint@hub9/stylelint-config@huisiyu/hsy-craco@emhamzahazeen/stylelint-config-scss@gbg/gbgcomponentlibrary@gorilainvest/styles@etchteam/stylelint-config@ethikz/stylelint-config@eterna/stylelint-config-sass@ggascoigne/stylelint-config@glasshouse/style-guide@gracious/stylelint-config-gracious@infinitebrahmanuniverse/nolb-stylelint-c@kunlunxu/norm@kickoffready/lint@lemoninternet/stylelint-config@ittinc/stylelint@isaac.frontend/stylelint-config-scss@lighting-beetle/stylelint-config-lighter@maiscrm/stylelint-config-standard@nimblehq/stylelint-config-nimble@elementor/stylelint-config-elementor@ec-europa/stylelint-config-ecl@moccu/stylelint-config@mono-mrinal/scss@keloop/stylelint-config@jahidulpabelislam/codestyles@jokklan/eslint-config@knowbly/stylelint-config@kickstartds/stylelint-config@kittichanr/eslint-config-kittichanr@jpcafe/eslint-config-next@katieboland/eslint-config-katieboland@oly_op/stylelint-config
12.1.0

8 months ago

12.0.0

10 months ago

11.1.0

1 year ago

11.0.0

1 year ago

10.0.0

2 years ago

9.0.1

4 years ago

9.0.0

4 years ago

8.0.0

4 years ago

7.1.0

5 years ago

7.0.0

5 years ago

6.2.0

5 years ago

6.1.0

6 years ago

6.0.0

6 years ago

5.4.0

6 years ago

5.3.0

6 years ago

5.2.0

7 years ago

5.1.0

7 years ago

5.0.0

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.1.0

8 years ago

3.0.1

8 years ago

3.0.0-rc.1

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

3.0.0

8 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago