Skip to content

keithamus/stylelint-config-strict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-config-strict

StyleLint sharable config for strict linting of CSS.

Installation

Install this config package and StyleLint:

$ npm install --save-dev stylelint stylelint-config-strict

Usage

This set of configs is meant to be extended on a per-project basis as necessary using StyleLint's shareable configs feature.

To start, simply add extends: ["strict"] to your .stylelintrc:

{
  "extends": ["strict"]
}

Add any additional plugins you want, for example:

{
  "extends": ["strict", "another-style-guideline"]
}

Feel free to define additional rules, or override them as you see fit:

{
  "extends": ["strict"],
  "rules": {
      "string-quotes": "double"
  }
}

For more details about how shareable configs work, see the StyleLint documentation.