mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00: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