README
Scentre Group Stylelint Config
This package contains Scentre Group's Stylelint configuration.
Usage
- Run
yarn add stylelint stylelint-scss @scentregroup/stylelint-config --dev - Run
touch .stylelintrc.js - Extend
@scentregroup/stylelint-config, i.e. add the following to.stylelintrc.js:
module.exports = {
extends: ['@scentregroup/stylelint-config']
}
- Add a
lint:styletask toscriptsinpackage.json:stylelint 'src/**/*.{css,scss}'
Development
If you would like to try out the repository locally:
- Run
git clone git@github.com:ScentreGroup/javascript_config.git cd javascript_config/stylelint-config- Create a global link to this repository via
yarn link - In the repository you would like to test, run
yarn link @scentregroup/stylelint-config. - You can then proceed as per the Usage section.