R+D linters
Based on https://github.com/airbnb/javascript/ and https://github.com/airbnb/css/ linting style guides.
Installation
- Issue the following command:
npx install-peerdeps --dev rd-linters
- In your node project, add a
.eslintrc
file with the following content:
{
"extends": "rd"
}
- In your VueJS project, add a
.eslintrc
file with the following content:
{
"extends": "rd-vue"
}
- In your project, add a
.stylelintrc
file with the following content:
{
"extends": "stylelint-config-rd"
}
- Run the following commands from your project root
cp ./node_modules/rd-linters/.editorconfig ./
cp ./node_modules/rd-linters/.prettierrc ./
- Install the following VSCode extensions:
ext install eslint
ext install stylelint
Note: You may have to restart VSCode in order for the changes to take effect