Skip to content

meltmedia/stylelint-config-meltmedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-config-meltmedia

This stylelint config contains rules specific to how we write our CSS at meltmedia. It's flexible enough to use for most projects, with rules used mostly to catch common errors, enforce explicit declarations, and ensure best practices. The ruleset was created by the HTML & CSS Guidelines team, please reach out with any suggestions for rules or feedback on your usage.

To see the rules that this config uses, please read the config itself.

Installation

npm install github:meltmedia/stylelint-config-meltmedia --save-dev

Usage

Create a .stylelintrc file at the base of your project:

{
  "extends": "stylelint-config-meltmedia"
}

Extending the config

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

For example, to change the indentation to tabs:

{
  "extends": "stylelint-config-meltmedia",
  "rules": {
    "indentation": "tab"
  }
}

Releases

No releases published

Packages

No packages published