Skip to content

kensho/stylelint-config-kensho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'"
  }
}