Skip to content

Commit b4c869e

Browse files
committed
docs: update contributing guide
1 parent bb15d1f commit b4c869e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ESLint React Contributing Guide
22

3+
> [!NOTE]\
4+
> FYI: The ESLint Raect project is not a fork of the `eslint-plugin-react` project and meanwhile `eslint-plugin-react` is not the upstream of ESLint React.\
5+
> Therefore, the rules and features you see in `eslint-plugin-react` may not necessarily appear in ESLint React and its plugins.
6+
37
Hi! We, the maintainers, are really excited that you are interested in contributing to ESLint React.
48

59
Before submitting your contribution though, please make sure to take a moment and read through the [Code of Conduct](CODE_OF_CONDUCT.md), as well as the appropriate section for the contribution you intend to make:
@@ -10,10 +14,6 @@ Before submitting your contribution though, please make sure to take a moment an
1014
- [Development Guide](#development-guide)
1115
- [Packages Overview](#packages-overview)
1216

13-
> [!NOTE]\
14-
> FYI: The ESLint Raect project is not a fork of the `eslint-plugin-react` project and meanwhile `eslint-plugin-react` is not the upstream of ESLint React.\
15-
> Therefore, the rules and features you see in `eslint-plugin-react` may not necessarily appear in ESLint React and its plugins.
16-
1717
## Issue Reporting Guidelines
1818

1919
- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately.

packages/plugins/eslint-plugin-react-x/src/rules/no-unused-state.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ function getName(node: TSESTree.Expression | TSESTree.PrivateIdentifier): string
3737
function isAssignmentToThisState(node: TSESTree.AssignmentExpression) {
3838
const { left } = node;
3939

40-
return (
41-
left.type === T.MemberExpression
40+
return left.type === T.MemberExpression
4241
&& AST.isThisExpression(left.object)
43-
&& getName(left.property) === "state"
44-
);
42+
&& getName(left.property) === "state";
4543
}
4644

4745
export default createRule<[], MessageID>({

0 commit comments

Comments
 (0)