Ignacio Bona Piedrabuena 89c78551cc
1604086049622-ui-sync (#1981)
Co-authored-by: Ignacio Bona <ibonapiedrabuena@linkedin.com>
2020-11-09 12:17:51 -08:00
..
2020-11-09 12:17:51 -08:00
2020-11-09 12:17:51 -08:00
2020-11-09 12:17:51 -08:00
2020-11-09 12:17:51 -08:00
2020-11-09 12:17:51 -08:00
2020-11-09 12:17:51 -08:00

@dh-tools/eslint-plugin

Custom ES-Lint rules for datahub.

Installation

You should not worry about this, since the scope of this addon is aimed only for @datahub and should be already installed. But just in case you wonder:

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @dh-tools/eslint-plugin:

npm install @dh-tools/eslint-plugin --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @dh-tools/eslint-plugin globally.

Usage

Add @datahub to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin part:

{
  "plugins": ["@datahub"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@dh-tools/no-addon-import": "error"
  }
}

Supported Rules

  • Fill in provided rules here

"@dh-tools/no-addon-import"

"@dh-tools/no-linkedin-import"