eslint-plugin-enzyme

0.2.0 • Public • Published

eslint-plugin-enzyme

NPM version Build Status Dependency Status Maintenance Status

Eslint rules for enzyme - JS testing utilites library for React

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-enzyme:

$ npm i eslint-plugin-enzyme --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-enzyme globally.

Usage

Add enzyme to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "enzyme"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "enzyme/no-shallow": 2
    }
}

Supported Rules

License

eslint-plugin-enzyme is licensed under the MIT License.

Package Sidebar

Install

npm i eslint-plugin-enzyme

Weekly Downloads

1,249

Version

0.2.0

License

MIT

Unpacked Size

14.6 kB

Total Files

18

Last publish

Collaborators

  • giamir