Skip to content

Commit dea47eb

Browse files
authored
Merge branch 'main' into no-use-in-try-catch
2 parents 7d96ec8 + c183546 commit dea47eb

File tree

106 files changed

+1195
-1154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1195
-1154
lines changed

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v1.29.0 (2025-03-01)
2+
3+
### ✨ New
4+
5+
- feat(plugins/naming-convention): add `context-name` rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/952
6+
7+
### 🐞 Fixes
8+
9+
- fix: fixed `naming-convention/use-state` works in components only, closes #953 by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/954
10+
11+
### 🪄 Improvements
12+
13+
- docs: use `recommended-typescript` for typescript files by @bluwy in https://github.com/Rel1cx/eslint-react/pull/949
14+
15+
### New Contributors
16+
17+
- @bluwy made their first contribution in https://github.com/Rel1cx/eslint-react/pull/949
18+
119
## v1.28.0 (2025-02-26)
220

321
### ✨ New
@@ -175,7 +193,7 @@ function useAuth() {
175193
- docs: add 'Min. React' column to rules overview page by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/880>
176194
- docs: add features section to rules overview page by @Rel1cx
177195

178-
## New Contributors
196+
### New Contributors
179197

180198
- @danielrentz made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/877>
181199

@@ -314,7 +332,7 @@ function useAuth() {
314332
- docs: use a standard mono-width font for the docs, closes #835 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/837>
315333
- Undeprecate `hooks-extra-no-direct-set-state-in-use-layout-effect` and remove it from recommended presets, closes #839 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/840>
316334

317-
## New Contributors
335+
### New Contributors
318336

319337
- @imjordanxd made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/829>
320338
- @neovov made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/831>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.1-beta.3
1+
1.29.1-beta.0

apps/website/content/docs/changelog.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
title: Changelog
33
---
44

5+
## v1.29.0 (2025-03-01)
6+
7+
### ✨ New
8+
9+
- feat(plugins/naming-convention): add `context-name` rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/952
10+
11+
### 🐞 Fixes
12+
13+
- fix: fixed `naming-convention/use-state` works in components only, closes #953 by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/954
14+
15+
### 🪄 Improvements
16+
17+
- docs: use `recommended-typescript` for typescript files by @bluwy in https://github.com/Rel1cx/eslint-react/pull/949
18+
19+
### New Contributors
20+
21+
- @bluwy made their first contribution in https://github.com/Rel1cx/eslint-react/pull/949
22+
523
## v1.28.0 (2025-02-26)
624

725
### ✨ New
@@ -179,7 +197,7 @@ function useAuth() {
179197
- docs: add 'Min. React' column to rules overview page by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/880>
180198
- docs: add features section to rules overview page by @Rel1cx
181199

182-
## New Contributors
200+
### New Contributors
183201

184202
- @danielrentz made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/877>
185203

@@ -318,7 +336,7 @@ function useAuth() {
318336
- docs: use a standard mono-width font for the docs, closes #835 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/837>
319337
- Undeprecate `hooks-extra-no-direct-set-state-in-use-layout-effect` and remove it from recommended presets, closes #839 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/840>
320338

321-
## New Contributors
339+
### New Contributors
322340

323341
- @imjordanxd made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/829>
324342
- @neovov made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/831>

apps/website/content/docs/rules/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"hooks-extra-prefer-use-state-lazy-initialization",
8484
"---Naming Convention Rules---",
8585
"naming-convention-component-name",
86+
"naming-convention-context-name",
8687
"naming-convention-filename",
8788
"naming-convention-filename-extension",
8889
"naming-convention-use-state",

apps/website/content/docs/rules/overview.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ full: true
114114

115115
| Rule || Features | Description |
116116
| :------------------------------------------------------------- | :- | :------- | :------------------------------------------------------------------------------- |
117-
| [`component-name`](./naming-convention-component-name) | 0️⃣ | `🔍` `⚙️` | Enforces naming conventions for components. |
118-
| [`filename`](./naming-convention-filename) | 0️⃣ | `🔍` `⚙️` | Enforces naming convention for JSX files. |
117+
| [`component-name`](./naming-convention-component-name) | 0️⃣ | `🔍` `⚙️` | Enforces consistent naming conventions for components. |
118+
| [`context-name`](./naming-convention-context-name) | 0️⃣ | `🔍` | Enforces consistent naming conventions for context providers. |
119+
| [`filename`](./naming-convention-filename) | 0️⃣ | `🔍` `⚙️` | Enforces consistent file naming conventions. |
119120
| [`filename-extension`](./naming-convention-filename-extension) | 0️⃣ | `🔍` `⚙️` | Enforces consistent use of the JSX file extension. |
120121
| [`use-state`](./naming-convention-use-state) | 0️⃣ | `🔍` | Enforces destructuring and symmetric naming of `useState` hook value and setter. |
121122

apps/website/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"fumadocs-twoslash": "3.0.0",
1919
"fumadocs-typescript": "3.0.3",
2020
"fumadocs-ui": "15.0.12",
21-
"lucide-react": "^0.476.0",
21+
"lucide-react": "^0.477.0",
2222
"next": "^15.2.0",
2323
"next-view-transitions": "^0.3.4",
2424
"react": "^19.0.0",
@@ -39,7 +39,7 @@
3939
"@tsconfig/strictest": "^2.0.5",
4040
"@types/hast": "^3.0.4",
4141
"@types/mdx": "^2.0.13",
42-
"@types/node": "^22.13.5",
42+
"@types/node": "^22.13.7",
4343
"@types/react": "^19.0.10",
4444
"@types/react-dom": "^19.0.4",
4545
"autoprefixer": "^10.4.20",
@@ -49,13 +49,13 @@
4949
"eslint-plugin-import-x": "^4.6.1",
5050
"eslint-plugin-mdx": "^3.1.5",
5151
"eslint-plugin-perfectionist": "^4.9.0",
52-
"eslint-plugin-react-hooks": "^5.1.0",
52+
"eslint-plugin-react-hooks": "^5.2.0",
5353
"eslint-plugin-react-refresh": "^0.4.19",
5454
"eslint-plugin-simple-import-sort": "^12.1.1",
5555
"eslint-plugin-unicorn": "^57.0.0",
5656
"postcss": "^8.5.3",
5757
"tailwindcss": "^4.0.9",
58-
"typescript": "^5.7.3",
58+
"typescript": "^5.8.2",
5959
"typescript-eslint": "^8.25.0"
6060
}
6161
}

examples/dual-react-dom-lib/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
"@eslint/js": "^9.21.0",
3535
"@tsconfig/node22": "^22.0.0",
3636
"@tsconfig/strictest": "^2.0.5",
37-
"@types/node": "^22.13.5",
37+
"@types/node": "^22.13.7",
3838
"@types/react": "^19.0.10",
3939
"eslint": "^9.21.0",
4040
"eslint-plugin-react-dom": "workspace:*",
41-
"eslint-plugin-react-hooks": "^5.1.0",
41+
"eslint-plugin-react-hooks": "^5.2.0",
4242
"eslint-plugin-react-hooks-extra": "workspace:*",
4343
"eslint-plugin-react-naming-convention": "workspace:*",
4444
"eslint-plugin-react-web-api": "workspace:*",
4545
"eslint-plugin-react-x": "workspace:*",
4646
"eslint-plugin-vitest": "^0.5.4",
4747
"react": "^19.0.0",
4848
"tsup": "^8.4.0",
49-
"typescript": "^5.7.3",
49+
"typescript": "^5.8.2",
5050
"typescript-eslint": "^8.25.0"
5151
},
5252
"peerDependencies": {

examples/next-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
"@tsconfig/next": "^2.0.3",
2222
"@tsconfig/node22": "^22.0.0",
2323
"@tsconfig/strictest": "^2.0.5",
24-
"@types/node": "^22.13.5",
24+
"@types/node": "^22.13.7",
2525
"@types/react": "^19.0.10",
2626
"@types/react-dom": "^19.0.4",
2727
"eslint": "^9.21.0",
2828
"eslint-config-flat-gitignore": "^2.1.0",
29-
"eslint-plugin-react-hooks": "^5.1.0",
29+
"eslint-plugin-react-hooks": "^5.2.0",
3030
"eslint-plugin-react-refresh": "^0.4.19",
31-
"typescript": "^5.7.3",
31+
"typescript": "^5.8.2",
3232
"typescript-eslint": "^8.25.0"
3333
},
3434
"engines": {

examples/vite-react-dom-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"@types/react-dom": "^19.0.4",
2626
"@vitejs/plugin-react": "^4.3.4",
2727
"eslint": "^9.21.0",
28-
"eslint-plugin-react-hooks": "^5.1.0",
28+
"eslint-plugin-react-hooks": "^5.2.0",
2929
"eslint-plugin-react-refresh": "^0.4.19",
30-
"typescript": "^5.7.3",
30+
"typescript": "^5.8.2",
3131
"typescript-eslint": "^8.25.0",
3232
"vite": "^6.2.0"
3333
},

examples/vite-react-dom-js-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/react-dom": "^19.0.4",
2323
"@vitejs/plugin-react": "^4.3.4",
2424
"eslint": "^9.21.0",
25-
"eslint-plugin-react-hooks": "^5.1.0",
25+
"eslint-plugin-react-hooks": "^5.2.0",
2626
"eslint-plugin-react-refresh": "^0.4.19",
2727
"globals": "^16.0.0",
2828
"vite": "^6.2.0"

0 commit comments

Comments
 (0)