Skip to content

diplodoc-platform/eslint-config

Repository files navigation

@diplodoc/eslint-config

NPM version

Install

npm install --save-dev eslint @diplodoc/eslint-config

Usage

Add .eslintrc file in the project root with the following content:

{
  "extends": "@diplodoc/eslint-config",
  "root": true
}

Prettier

If you are using Prettier, extend root config with the additional rules:

{
  "extends": ["@diplodoc/eslint-config", "@diplodoc/eslint-config/prettier"],
  "root": true
}