eslint-config-jest-enzyme

7.1.2 • Public • Published

eslint-config-jest-enzyme

npm version License

Overview

This library is only useful if you are using jest-environment-enzyme. When you are using that library, React and enzyme specific variables are globalized. This lint config lets eslint know about those globals and not warn about them.

Setup

Add this extend to your eslint file:

{
  "extends": [
    "jest-enzyme"
  ]
}

This configuration only applies to test files that end in *.test.js.

/eslint-config-jest-enzyme/

    Package Sidebar

    Install

    npm i eslint-config-jest-enzyme

    Weekly Downloads

    2,549

    Version

    7.1.2

    License

    MIT

    Unpacked Size

    3.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • blainekasten