eslint-plugin-jest-react

ESLint plugin for Jest with React

Usage no npm install needed!

<script type="module">
  import eslintPluginJestReact from 'https://cdn.skypack.dev/eslint-plugin-jest-react';
</script>

README

eslint-plugin-jest-react

ESLint plugin for Jest with React

Separately, have you tried the community ESLint Jest plugin?

Installation

yarn add --dev eslint eslint-plugin-jest-react

Usage

Add jest-react to the plugins section of your ESLint configuration file.

{
  plugins: ["jest-react"];
}

Rules

We recommend extending from plugin:jest-react/recommended:

{
  "extends": ["plugin:jest-react/recommended"]
}

If you want more fine control over the rules, you may configure them individually per ESLint's Configuring Rules docs:

{
  "rules": {
    "jest-react/no-mocking-react": "warn"
  }
}

Contribution Guidelines

We'd love to have you contribute! Check the issue tracker for issues labeled accepting prs to find bug fixes and feature requests the community can work on. If this is your first time working with this code, the good first issue label indicates good introductory issues.

Please note that this project is released with a Contributor Covenant. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md.