@team23/stylelint-config-team23-scss

4.0.1 • Public • Published

stylelint-config-team23-scss

Standard SCSS linting config for TEAM23

Rules for linting CSS + SCSS at TEAM23 with stylelint.

Extends stylelint-config-team23-standard, which enables css error checking based on best practices. So if you want to lint css and scss styles, you just need this configuartion, as it includes the stylelint-config-team23-standard configuration.

It further extends stylelint-config-standard-scss which enables scss error checking plus some style checking rules. the stylechecking rules are disabled by also extending stylelint-config-prettier-scss. Our custom ruleset is defined in the index.js.

Installation

npm:

# latest version
npm install --save-dev @team23/stylelint-config-team23-scss

# specific version
npm install --save-dev @team23/stylelint-config-team23-scss@1.0.3

or using github (deprecated):

# latest version
npm install --save-dev github:team23/stylelint-config-team23-scss

# specific version
npm install --save-dev "github:team23/stylelint-config-team23-scss#v1.0.3"

Usage

If you've installed stylelint-config-team23-scss locally within your project, just set your stylelint config to:

{
    "extends": "@team23/stylelint-config-team23-scss"
}

If you use a version prior to v1.0.2, use

{
    "extends": "stylelint-config-team23-standard"
}

Extending the config

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

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, change the indentation to tabs, turn off the number-leading-zero rule,and add the unit-whitelist rule:

{
  "extends": "@team23/stylelint-config-team23-scss",
  "rules": {
    "scss/at-extend-no-missing-placeholder": true,
    # ...
  }
}

Proposing rule changes

For proposing changes to the ruleset please open either

  • a merge request
  • a ticket

Changelog

License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.1168latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.1168
4.0.00
3.0.24
3.0.10
3.0.00
2.0.07
1.0.390

Package Sidebar

Install

npm i @team23/stylelint-config-team23-scss

Weekly Downloads

269

Version

4.0.1

License

MIT

Unpacked Size

10.5 kB

Total Files

5

Last publish

Collaborators

  • tazlog
  • laura_schmid
  • schroeter
  • brandt-team23
  • goester-team23
  • ademeter