eslint-plugin-react
eslint-plugin-react copied to clipboard
React-specific linting rules for ESLint
This might be semver-major, since the rule has never had any default behavior previously. Fixes #1551. Probably fixes #1540.
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...
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...
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...
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.