Skip to content

Commit

Permalink
docs: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Aug 20, 2024
1 parent 6b8f321 commit d3e60a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/eslint-plugin-react-web-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default [

| Rule | Description | 💼 | 💭 | |
| :-------------------------------------- | :-------------------------------------------- | :-: | :-: | :-: |
| `no-leaked-timeout` | Prevents leaked `setTimeout` | ✔️ | | 🚧 |
| `no-leaked-interval` | Prevents leaked `setInterval` | ✔️ | | 🚧 |
| `no-leaked-timeout` | Prevents leaked `setTimeout` | ✔️ | | |
| `no-leaked-interval` | Prevents leaked `setInterval` | ✔️ | | |
| `no-leaked-idle-callback` | Prevents leaked `requestIdleCallback` | ✔️ | | 🚧 |
| `no-leaked-animation-frame` | Prevents leaked `requestAnimationFrame` | ✔️ | | 🚧 |
| `no-leaked-event-source` | Prevents leaked `EventSource` | ✔️ | | 🚧 |
Expand Down
4 changes: 2 additions & 2 deletions website/pages/docs/rules/web-api-no-leaked-interval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function Example() {

useEffect(() => {
const intervalId = setInterval(() => console.log(count), 1000);
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// - A 'setInterval' in 'useEffect' should have a corresponding 'clearInterval' in its cleanup function.
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// - A 'setInterval' in 'useEffect' should have a corresponding 'clearInterval' in its cleanup function.
}, []);

return null;
Expand Down

0 comments on commit d3e60a8

Please sign in to comment.