1.0.2 • Published 4 years ago
@ascend-innovations/stylelint-config v1.0.2
Install
Install it with NPM: npx install-peerdeps --dev @ascend-innovations/stylelint-config\
Install it with Yarn: npx install-peerdeps --dev @ascend-innovations/stylelint-config -Y\
Use
- Create a .stylelintrcfile in your project root
- Extend this config:
{
  extends: '@ascend-innovations/stylelint-config';
}- Add a stylelint script to your package.json
"lint:css": "yarn stylelint **/*.css",
"lint:css:fix": "yarn stylelint **/*.css --fix"VSCode Setup
- It is recommended to auto-fix on save by adding the following to .vscode/settings.json:
"editor.codeActionsOnSave": {
  "source.fixAll.stylelint": true
},- Additionally, you may want to disable conflicting VSCode reporting by adding the following to .vscode/settings.json:
  "css.validate": false,
  "less.validate": false,
  "scss.validate": false- For more information on configuring stylelint for VSCode head here: https://github.com/stylelint/vscode-stylelint