fix: docs/changelog

This commit is contained in:
Matt Seccafien 2021-11-11 10:54:17 +01:00
parent 84ff40ca64
commit 90efe91c8c
5 changed files with 7 additions and 5 deletions

View file

@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
<!-- ## Unreleased -->
## Unreleased
- New rule `hydrogen/no-effect-in-server-components`. This rule prevents using `useEffect` and `useLayoutEffect` in non-client components.
## 0.6.2 - 2021-11-10

View file

@ -4,7 +4,7 @@ The `useEffect` and `useLayoutEffect` lifecycle hooks do not function as expecte
## Rule Details
This rule prevents using these hooks in files that do not end with the `.client` suffix that denotes a React Component that does not run on the server.
This rule prevents using these hooks in files that do not end with the `.client` suffix.
Examples of **incorrect** code for this rule:

View file

@ -1,3 +1,3 @@
## Rule Details
This rule prevents using these hooks in files that do not end with the `.client` suffix that denotes a React Component that does not run on the server.
This rule prevents using these hooks in files that do not end with the `.client` suffix.

View file

@ -4,7 +4,7 @@ The `useState` and `useReducer` state handling hooks do not function as expected
## Rule Details
This rule prevents using these hooks in files that do not end with the `.client` suffix that denotes a React Component that does not run on the server.
This rule prevents using these hooks in files that do not end with the `.client` suffix.
Examples of **incorrect** code for this rule:

View file

@ -1,3 +1,3 @@
## Rule Details
This rule prevents using these hooks in files that do not end with the `.client` suffix that denotes a React Component that does not run on the server.
This rule prevents using these hooks in files that do not end with the `.client` suffix.