0.2.3 • Published 6 years ago
@scentregroup/stylelint-config v0.2.3
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:style
task toscripts
inpackage.json
:stylelint 'src/**/*.{css,scss}'
Development
If you would like to try out the repository locally:
1. Run git clone git@github.com:ScentreGroup/javascript_config.git
2. cd javascript_config/stylelint-config
3. Create a global link to this repository via yarn link
4. In the repository you would like to test, run yarn link @scentregroup/stylelint-config
.
5. You can then proceed as per the Usage section.