File tree Expand file tree Collapse file tree 3 files changed +20
-19
lines changed Expand file tree Collapse file tree 3 files changed +20
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# eslint-plugin-react-server-components
2
2
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
+
3
22
## 1.1.2
4
23
5
24
### Patch Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-plugin-react-server-components" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.2.0 " ,
4
4
"description" : " Rules for React server components" ,
5
5
"type" : " module" ,
6
6
"files" : [
You can’t perform that action at this time.
0 commit comments