npm install --save-dev eslint @diplodoc/eslint-config
Add .eslintrc
file in the project root with the following content:
{
"extends": "@diplodoc/eslint-config",
"root": true
}
If you are using Prettier, extend root config with the additional rules:
{
"extends": ["@diplodoc/eslint-config", "@diplodoc/eslint-config/prettier"],
"root": true
}