kununu style linter configuration
These configurations are for stylelint linter.
Add @kununu/stylelint-config npm package as a dev dependency to your project:
npm install @kununu/stylelint-config --save-dev
Create a .stylelintrc
file with the following configuration:
{
"extends": "@kununu/stylelint-config"
}
See docs to find more detailed information on stylelint configuration and usage.
And add
"lint": "stylelint '**/*.scss'",
to your npm file.
At kununu, @kununu/stylelint-config linter runs on every commit, but finding a lint error after push can be frustrating and a waste time. In order to avoid it, editor plugins are available to warn you and validate your code.
There's what we use and recommend: