Skip to content

Commit c1b4479

Browse files
authored
feat: add react/no-unused-state, closes #294 (#296)
1 parent aa2acb0 commit c1b4479

File tree

26 files changed

+981
-75
lines changed

26 files changed

+981
-75
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v0.10.7 (Thu Jan 11 2024)
2+
3+
### ✨ New
4+
5+
- Add rule `react/no-unused-state`.
6+
17
## v0.10.6 (Tue Jan 9 2024)
28

39
### 🐞 Fixes

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.10.6
1+
v0.10.7

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's monorepo. More than 50 ESLint rules to catch common mistakes and improve your React code. Rewritten from the scratch (mostly).",
55
"keywords": [
66
"eslint",
@@ -69,12 +69,12 @@
6969
"@typescript-eslint/parser": ">=6.18.1",
7070
"@typescript-eslint/rule-tester": "6.18.1",
7171
"@vitest/ui": "1.1.3",
72-
"bun": "1.0.21",
73-
"bun-types": "1.0.21",
72+
"bun": "1.0.22",
73+
"bun-types": "1.0.22",
7474
"cspell": "8.3.2",
7575
"dedent": "1.5.1",
7676
"dprint": "0.45.0",
77-
"effect": "2.0.2",
77+
"effect": "2.0.3",
7878
"eslint": ">=8.56.0",
7979
"eslint-config-with-tsconfig": "2.9.280",
8080
"eslint-plugin-eslint-plugin": "5.2.1",
@@ -86,7 +86,7 @@
8686
"fast-equals": "5.0.1",
8787
"husky": "8.0.3",
8888
"markdownlint": "0.33.0",
89-
"pathe": "1.1.1",
89+
"pathe": "1.1.2",
9090
"publint": "0.2.7",
9191
"rollup": "4.9.4",
9292
"rollup-plugin-dts": "6.1.0",
@@ -123,7 +123,7 @@
123123
"@typescript-eslint/utils": "6.18.1",
124124
"@typescript-eslint/eslint-plugin": "6.18.1",
125125
"eslint": ">=8.56.0",
126-
"effect": "2.0.2",
126+
"effect": "2.0.3",
127127
"next": "14.0.4",
128128
"react": "18.2.0",
129129
"react-dom": "18.2.0",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/core",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin-debug",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint plugin for debugging related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-jsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin-jsx",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint plugin for JSX related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-naming-convention/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin-naming-convention",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint plugin for naming convention related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin-react-hooks",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react/docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ ___
7070
| `no-unstable-default-props` | `RuleModule`\<``"NO_UNSTABLE_DEFAULT_PROPS"``, [], `RuleListener`\> |
7171
| `no-unstable-nested-components` | `RuleModule`\<`MessageID`, [], `RuleListener`\> |
7272
| `no-unused-class-component-members` | `RuleModule`\<``"NO_UNUSED_CLASS_COMPONENT_MEMBERS"``, [], `RuleListener`\> |
73+
| `no-unused-state` | `RuleModule`\<``"NO_UNUSED_STATE"``, [], `RuleListener`\> |
7374
| `prefer-destructuring-assignment` | `RuleModule`\<``"PREFER_DESTRUCTURING_ASSIGNMENT"``, [], `RuleListener`\> |

packages/plugins/eslint-plugin-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin-react",
3-
"version": "v0.10.6",
3+
"version": "v0.10.7",
44
"description": "ESLint React's ESLint plugin for React related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

0 commit comments

Comments
 (0)