12.1.0 • Published 1 year ago

stylelint-config-sass-guidelines v12.1.0

Weekly downloads
155,122
License
MIT
Repository
github
Last release
1 year 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-configurationjekyll-react-webpackinfinigulp-tasks-frontguominghui_stylelint_scsslincd-serverkolibri-format@waldronmatt/stylelint-config@wearewondrous/stylelint-config@wavevision/coding-standard@weshoover/dfa-react-base-test@wondrousllc/stylelint-config@wowissu/stylelint@xianshenglu/stylelint-config-sass@uncinc/stylelint-config@ui-ingredients/scss@tlds-components-lib/scss@titelmedia/linter-executables@uniweb/stylelint-config@toojs/stylelint-config-standard@touch4it/stylelint-config-guidelines@trailheadtechnology/eslint-config@versett/stylelint-config-versett@vic1707/stylelint-config@virtual-live-lab/stylelint-config@viu/launchpad@youngk/stylelint-config@yproximite/stylelint-config-wordpress@zaber/eslint-config@zehitomo/eslint-configalmendra-rocket@zilahir/stylelint-config@zrev2220/stylelint-configakiya-react-scriptsakiya-react-component-scriptsangularjs-scriptsgarba-uieslint-config-ladifireeslint-config-doshiieslint-config-energysageeslint-config-bastekeslint-config-akkaduflamingo-carotene-sass-lintchapmancra-template-jscra-template-earthwarecra-template-tscumquenemodiyi-uidfa-react-basequick-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-tasksyjrcli-envwebfactory-gulp-preset@he11/core@infinitebrahmanuniverse/nolb-stylelint-c@nypost/stylelint-config@zcool/style-config-sass@zcool/style-lint-config-sass@zcool/stylelint-config-sassmy-stylelintmpd-cliscaffoldr-reactroom-booking-app
12.1.0

1 year ago

12.0.0

1 year ago

11.1.0

2 years ago

11.0.0

2 years ago

10.0.0

3 years ago

9.0.1

4 years ago

9.0.0

4 years ago

8.0.0

5 years ago

7.1.0

5 years ago

7.0.0

6 years ago

6.2.0

6 years ago

6.1.0

6 years ago

6.0.0

7 years ago

5.4.0

7 years ago

5.3.0

7 years ago

5.2.0

7 years ago

5.1.0

7 years ago

5.0.0

8 years ago

4.2.0

8 years ago

4.1.0

8 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

9 years ago

2.0.0

9 years ago

3.0.0

9 years ago

1.1.1

9 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