Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rd-linters

SolDes3MIT1.0.13

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

  1. Issue the following command:

    npx install-peerdeps --dev rd-linters
  2. In your node project, add a .eslintrc file with the following content:

{
  "extends": "rd"
}
  1. In your VueJS project, add a .eslintrc file with the following content:
{
  "extends": "rd-vue"
}
  1. In your project, add a .stylelintrc file with the following content:
{
  "extends": "stylelint-config-rd"
}
  1. Run the following commands from your project root
cp ./node_modules/rd-linters/.editorconfig ./
cp ./node_modules/rd-linters/.prettierrc ./
  1. 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