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

React-specific linting rules for ESLint

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

Since the lifecycle group is a special group that deals with state/props changes, grouping static lifecycle methods under lifecycle group helps to have this logic together. This looks like a...

enhancement

Check the following issue for reference. #1893

cc @ljharb So... now that I know what future prospects are for `jsx-no-bind` (https://github.com/yannickcr/eslint-plugin-react/issues/1633#issuecomment-402611450) I actually have doubts that it makes sense to add this new rule on its own....

question
new rule

Many thanks to @yannickcr and [all contributors](https://github.com/yannickcr/eslint-plugin-react/graphs/contributors) for developing this great plugin :slightly_smiling_face: Regarding issue #599 (_"`sort-comp`: Consider separating static fields & instance fields into separate groups"_), and PR #1470...

question
semver-major

On some my code (didn't check what code exactly) I got this: ``` Cannot read property 'type' of null TypeError: Cannot read property 'type' of null at find (/path/to/package/node_modules/eslint-plugin-react/lib/rules/jsx-max-depth.js:93:27) at...

bug

Hey @yannickcr thanks for being awesome and making this great plugin, super valuable 😎. I have noticed, that while working with a team of React devs - some devs will...

enhancement
question
new rule

Using `React.HTMLAttributes` as the prop type in a component definition causes false positives of `react/prop-types`. Strangely enough, when adding indirection by extending that same type in an interface, the problem...

bug
help wanted
typescript

This code ``` javascript const foo = bar ? ( {'Bar is true!'} ) : ( {'Bar is false!'} ); ``` violates the `jsx-indent` rule on the lines with the...

help wanted