Skip to content

netzstrategen/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netzstrategen stylelint config

Standard stylelint config for Netzstrategen projects.

Installation

Install the configuration and all peer dependencies:

npm install --save-dev @netzstrategen/stylelint-config stylelint stylelint-scss stylelint-selector-bem-pattern

Usage

Create the stylelint configuration

Create a stylelint configuration json file:

.stylelintrc.json

{
  "extends": [
    "@netzstrategen/stylelint-config"
  ]
}

Modifying the config

Overwrite rules from the default Netzstrategen config:

{
  "extends": [
    "stylelint-config-netzstrategen"
  ],
  "rules": {
    "no-empty-source": null
  }
}

Stylelint has an extensive list of rules. Additional rules are provided by the following packages: