stylelint-config-kensho
v12.0.0
Published
Standard Kensho config to lint CSS/postcss files.
Downloads
7
Keywords
Readme
stylelint-config-kensho
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'"
}
}