eslint-plugin-react
eslint-plugin-react copied to clipboard
React-specific linting rules for ESLint
I created a failing test case for: https://github.com/yannickcr/eslint-plugin-react/issues/1032
Adds a forbidPatterns option that takes an array of regexp strings so it's possible to forbid the use of things like `data-*` props
I wanted to forbid some prop types on DOM nodes as well as Components, so I added the option here. Let me know if there's anything that needs to be...
@yannickcr this adds a failing test case for the following issue https://github.com/yannickcr/eslint-plugin-react/issues/322 The first `Foo` case passes, and the second `Bar` case fails. I'd be happy to help figure out...
[RFC] Adding a new rule to complement the existing `no-did-update-set-state`. This rule will look for any occurrences of `this.setState` and check whether the method it is being called from is...
I updated the link to the "noreferrer" explanation instead of a link to the "noopener" explanation, since the paragraph where this link is located only talks about the "noreferrer".
This fixes a fairly common bug where React will render the falsy left side of a conditional with `&&` operator, resulting in things like `0` showing up in your UI....
Optionally allow `` While attempting to add jsx-no-useless-fragments to my company's repo, I ran into the issue that while we wanted to remove instances where the fragment was only wrapping...
`jsx/no-constructed-context-values` currently only works for context providers that are used as `` We have a lot of use cases where, instead of exporting the context directly, we explicitly export the...