Skip to content

Commit d3c3cf6

Browse files
Version Packages (#11)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bf954e6 commit d3c3cf6

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

.changeset/sour-games-try.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# eslint-plugin-react-server-components
22

3+
## 1.2.0
4+
5+
### Minor Changes
6+
7+
- 560c8be: Added `allowedServerHooks` option. Hooks specified here will not throw an error in files that do not have the `'use client'` directive.
8+
9+
Example:
10+
11+
```json
12+
{
13+
"rules": {
14+
"react-server-components/use-client": [
15+
"error",
16+
{ "allowedServerHooks": ["useTranslation"] }
17+
]
18+
}
19+
}
20+
```
21+
322
## 1.1.2
423

524
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-server-components",
3-
"version": "1.1.2",
3+
"version": "1.2.0",
44
"description": "Rules for React server components",
55
"type": "module",
66
"files": [

0 commit comments

Comments
 (0)