Find out the dead export variables
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-deadexport
:
npm install eslint-plugin-deadexport --save-dev
Add deadexport
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["deadexport"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"deadexport/no-unused-exported-vars": "error"
}
}
TODO: Run eslint-doc-generator to generate the rules list.