eslint-plugin-react
eslint-plugin-react copied to clipboard
React-specific linting rules for ESLint
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...
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....
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...
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...
Hi, I try to fix #1601. Please review. Thanks.
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...
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...
This code ``` javascript const foo = bar ? ( {'Bar is true!'} ) : ( {'Bar is false!'} ); ``` violates the `jsx-indent` rule on the lines with the...