Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 1.11 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.11 KB

stylelint-config-kensho

Build Status npm

This Stylelint config extends the standard config with a few customizations to support our CSS infrastructure, which uses postcss and CSS modules for JS interoperability.

Usage

To use the config, install stylelint and this config as development dependencies:

$ npm i -D stylelint stylelint-config-kensho

Add a .stylelintrc.yml (or equivalent) which extends the config:

extends: stylelint-config-kensho

Add an npm script in package.json to run the linter on all CSS files:

{
  "scripts": {
    "lint:css": "stylelint 'src/**/*.css'"
  }
}