rd-linters
v1.0.13
Published
Linters used in our projects.
Readme
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
.eslintrcfile with the following content:
{
"extends": "rd"
}- In your VueJS project, add a
.eslintrcfile with the following content:
{
"extends": "rd-vue"
}- In your project, add a
.stylelintrcfile 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 stylelintNote: You may have to restart VSCode in order for the changes to take effect
