@cmsgov/stylelint-config-design-system

A sharable stylelint config that enforces the design system's CSS and Sass rules

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
20632Aug 4, 2021Feb 7, 2017Minified + gzip package size for @cmsgov/stylelint-config-design-system in KB

Readme

A sharable stylelint config object that enforces the design system's CSS and Sass rules

Installation

npm install @cmsgov/stylelint-config-design-system stylelint --save-dev

Usage

Once installed, you can use it by specifying @cmsgov/stylelint-config-design-system in the extends section of your Stylelint configuration.

{
  extends: ["@cmsgov/stylelint-config-design-system"],
  rules: {
    // Additional, per-project rules...
  }
}

Credits

Our stylelint rules are based on those in @18F/stylelint-rules and stylelint-config-primer

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.