eslint-plugin-fidel

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-fidel

Weekly Downloads

1

Version

0.1.1

License

ISC

Unpacked Size

26 kB

Total Files

15

Last publish

Collaborators

  • fidel100