Skip to content

dnunez24/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

David Nuñez's Stylelint Config

This is my personal configuration for stylelint based on stylelint-config-standard and extended with my own preferences.

Install

Install Stylelint and this configuration as development dependencies:

npm install stylelint stylelint-config-dnunez24 --save-dev

Extend

Create a .stylelintrc file in your project root and extend from stylelint-config-dnunez24. Override any of the default configuraiton settings as you please. Here's an example:

{
  "extends": "stylelint-config-dnunez24",
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null,
    "property-no-unknown": [ true, {
      "ignoreProperties": [
        "composes"
      ]
    }],
    "unit-whitelist": ["em", "rem", "s"]
  }
}

Lint

Make sure the stylelint executable is in your PATH and run it against your stylesheets to test compliance against the style preferences.

stylelint src/css/**/*.css

Editor Config

TODO

Releases

No releases published

Packages

No packages published