0.2.0 • Published 5 years ago
eslint-plugin-enzyme v0.2.0
eslint-plugin-enzyme
Eslint rules for enzyme - JS testing utilites library for React
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-enzyme:
$ npm i eslint-plugin-enzyme --save-devNote: 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.