1.0.2 • Published 2 years ago

@ascend-innovations/stylelint-config v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  1. Create a .stylelintrc file in your project root
  2. Extend this config:
{
  extends: '@ascend-innovations/stylelint-config';
}
  1. Add a stylelint script to your package.json
"lint:css": "yarn stylelint **/*.css",
"lint:css:fix": "yarn stylelint **/*.css --fix"

VSCode Setup

  1. It is recommended to auto-fix on save by adding the following to .vscode/settings.json:
"editor.codeActionsOnSave": {
  "source.fixAll.stylelint": true
},
  1. 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
  1. For more information on configuring stylelint for VSCode head here: https://github.com/stylelint/vscode-stylelint