@strawberrydigital/stylelint-config
v1.0.0
Published
Strawberry's Stylelint config.
Downloads
2
Readme
@strawberrydigital/stylelint-config
This package provides Strawberry's .stylelintrc as a shared npm module.
Installation
Install with yarn:
$ yarn add --dev stylelint @strawberrydigital/stylelint-config
or install with npm:
$ npm install --save-dev stylelint @strawberrydigital/stylelint-config
Usage
Add the preset to your styleslint config file (.stylelintrc
, stylelint.config.js
, etc.):
{
"extends": ["@strawberrydigital/stylelint-config"]
}
Add a linting script to your package.json
:
{
"scripts": {
"lint:styles": "stylelint **/*.scss"
}
}
Run script with yarn:
$ yarn lint:styles
or run with npm:
$ npm run lint:styles