eslint-plugin-exp-hub
v1.0.1
Published
This package provides a set of custom rules for ESLint that are specific to the Experimentation Hub project, using the [DWC ESLint Plugin](https://github.com/bbc/data-web-components/tree/main/tools/eslint-plugin), it extends the pre existing rules and ext
Downloads
222
Readme
Experimentation Hub Eslint Plugin
This package provides a set of custom rules for ESLint that are specific to the Experimentation Hub project, using the DWC ESLint Plugin, it extends the pre existing rules and extends them with the additional configuration for the Hub's node and web projects.
Usage
Add the dependency to your project:
{
"devDependencies": {
... // other dependencies
"eslint-plugin-exp-hub": "workspace:*"
}
}
Create a eslint.config.mjs
file in the root file of your project and add the following configuration for a node project:
import expHubConfig from "eslint-plugin-exp-hub";
export default expHubConfig.configs.node;
Or for a web project:
import expHubConfig from "eslint-plugin-exp-hub";
export default expHubConfig.configs.web;