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 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
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments