From a21e5086d513d0ae6d359389bc1f58b7c099d7b3 Mon Sep 17 00:00:00 2001 From: "Siddharth Gelera (reaper)" Date: Tue, 17 Dec 2024 00:36:45 +0530 Subject: [PATCH] docs: breakdown addition --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index dd9975c..21ce7a2 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Add `valtio` to the `extends` section of your `.eslintrc` configuration file. } ``` +## Rules + Alternatively, you can enable rules in the plugin, selectively. ```json @@ -57,6 +59,9 @@ Alternatively, you can enable rules in the plugin, selectively. This plugin helps you catch common mistakes that can occur in [valtio](https://github.com/pmndrs/valtio). Here are some cases that this plugin catches. + +## Rules Breakdown + ### Snapshots in callbacks are not recommended We shouldn't use snapshots in callbacks, because snapshots can be stale there.