https://github.com/codecademy/eslint-plugin-jest-react
ESLint plugin for Jest with React
https://github.com/codecademy/eslint-plugin-jest-react
Last synced: 7 months ago
JSON representation
ESLint plugin for Jest with React
- Host: GitHub
- URL: https://github.com/codecademy/eslint-plugin-jest-react
- Owner: Codecademy
- License: mit
- Created: 2021-01-23T15:33:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-08T20:44:04.000Z (over 4 years ago)
- Last Synced: 2024-11-29T17:14:39.578Z (over 1 year ago)
- Language: TypeScript
- Size: 117 KB
- Stars: 5
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
> Separately, have you tried the [community ESLint Jest plugin](https://www.npmjs.com/package/eslint-plugin-jest)?
## Installation
```shell
yarn add --dev eslint eslint-plugin-jest-react
```
## Usage
Add `jest-react` to the plugins section of your ESLint configuration file.
```js
{
plugins: ["jest-react"];
}
```
## Rules
We recommend extending from `plugin:jest-react/recommended`:
```js
{
"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](https://eslint.org/docs/user-guide/configuring#configuring-rules):
```js
{
"rules": {
"jest-react/no-mocking-react": "warn"
}
}
```
## Contribution Guidelines
We'd love to have you contribute!
Check the [issue tracker](https://github.com/Codecademy/eslint-plugin-jest-react/issues) for issues labeled [`accepting prs`](https://github.com/Codecademy/eslint-plugin-jest-react/labels/status%3A%20accepting%20prs) 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`](https://github.com/Codecademy/eslint-plugin-jest-react/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+) label indicates good introductory issues.
Please note that this project is released with a [Contributor Covenant](https://www.contributor-covenant.org).
By participating in this project you agree to abide by its terms.
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).