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

Resolves #2156.

help wanted

This might be semver-major, since the rule has never had any default behavior previously. Fixes #1551. Probably fixes #1540.

bug
semver-major

This adds handling for multiple previously unhandled situations related to destructuring and member expressions. It required that I pretty heavily rework the existing code related to marking prop types usages,...

I saw #578 and thought that the requested rule was useful. I personally don't like components that define extra render* methods that return JSX. It is a way to clean...

enhancement
new rule

As per https://facebook.github.io/react/docs/dom-elements.html , `data-*` and `aria-*` attributes should be lowercase. This rule enforces that. Justification to be added to recommended rules: Without this rule, `data-myProp` and `aria-describedBy` will both...

question
new rule

Fixes #1113 This is based on the work in https://github.com/yannickcr/eslint-plugin-react/pull/1145 but reports on many more cases. Now warns on: * array mutations * `Object.assign` * `Object.defineProperty` * `delete` * all...

enhancement
new rule

For example right now a user will see with default settings: `` "Prop key for onclick must begin with on" Well that error doesn't help me.... The code is really...

Root file for the docs directory to help newbies (like me) find info on setting up the plugin.

documentation