eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

React-specific linting rules for ESLint

Results 293 eslint-plugin-react issues
Sort by recently updated
recently updated
newest added

Conflicting rules in jsx-intend --> ``` {buttons .map((b, i) => (i === 2) ? : )} ``` Tells me `Expected indentation of 12 space characters but found 14` (for line...

I had the misconception that a feature existed in the latest version when it didn't in #3286. Going through the issues, it seems like a lot of people had similar...

# Description* I would like to know if there is any existing ESLint rule this plugin for preventing _mirroring props in state_ ❌ Do not use a prop as the...

help wanted
new rule

The `react/boolean-prop-naming` rule does not work when using an interface with TypeScript but it works with a `type` This shows an error like it should: ```typescript type Props = {...

enhancement
help wanted
typescript

When i run eslint on my code, I get the error: `'React' is defined but never used no-unused-vars` when I remove import 'React' from 'react' I get the error `'React'...

Currently, `no-unescaped-entities` only tell the problem in the description, it doesn't give suggestions so users can quickly solve the issue in their editor. https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions

enhancement
help wanted

In the following cases the functions should not be considered a component, if they returns only `null` without jsx. https://github.com/jsx-eslint/eslint-plugin-react/blob/4b4bba91ddebe27cf6bdd9f86d2b9a824a07a8fb/tests/lib/rules/no-this-in-sfc.js#L245-L255 https://github.com/jsx-eslint/eslint-plugin-react/blob/4b4bba91ddebe27cf6bdd9f86d2b9a824a07a8fb/tests/lib/rules/no-this-in-sfc.js#L278-L290 https://github.com/jsx-eslint/eslint-plugin-react/blob/4b4bba91ddebe27cf6bdd9f86d2b9a824a07a8fb/tests/lib/rules/no-this-in-sfc.js#L291-L302

Thanks for implementing the new `hook-use-state` rule! I'm excited to use it on my team's codebase to enforce consistently-named `[state, setState]` pairs. Occasionally we have code like this: ``` const...

question

I just tested the version `7.20.6` and I got the error `... is missing in props validation `. It's a `Nextjs` project and I want to add the linting now...

help wanted

Are there any plans to make the `lib/util` directory its own package? I ask as i was looking to create my own JSX-aware eslint rules and it would be super...