eslint-plugin-fidel
This plugin add rules for detecting unknown props passed to React components, following View-Container pattern.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fidel
:
npm install eslint-plugin-fidel --save-dev
Usage
Add fidel
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fidel"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fidel/fidel-rule-2": 1
}
}
Rules
Name | Description |
---|---|
fidel-rule-1 | This rule fires with error always, for testing purposes |
fidel-rule-2 | Detect unknown props passed to a component in React |