0.1.1 • Published 3 years ago
eslint-plugin-fidel v0.1.1
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-devNext, install eslint-plugin-fidel:
npm install eslint-plugin-fidel --save-devUsage
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 |