Style Setup
To detect and fix problems in style files we use Stylelint and Prettier.
This setup extends the Idiomatic CSS setup.
Step 1
Install required node packages by running the command:
npm i -D stylelint stylelint-config-idiomatic-css stylelint-config-recommended-scss stylelint-config-standard stylelint-scss stylelint-config-prettier
Step 2
Create .stylelintrc.js file(in your projects root directory) with the following content:
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recommended-scss',
'stylelint-config-idiomatic-css',
'stylelint-config-prettier',
],
rules: {
indentation: 'tab',
},
};