Skip to content

Commit cd68d27

Browse files
committed
docs: update rule descriptions to use consistent verb tense
1 parent 15e8028 commit cd68d27

7 files changed

+7
-7
lines changed

website/pages/docs/rules/hooks-extra-no-useless-custom-hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ react-hooks-extra/no-useless-custom-hooks
2424

2525
## What it does
2626

27-
Enforce custom Hooks to use at least one other Hook inside.
27+
Enforces custom Hooks to use at least one other Hook inside.
2828

2929
If your function doesn’t call any Hooks, avoid the `use` prefix. Instead, write it as a regular function without the `use` prefix. For example, `useSorted` below doesn’t call Hooks, so call it `getSorted` instead:
3030

website/pages/docs/rules/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
| [`no-unused-state`](no-unused-state) | 1️⃣ | `🔍` | Warns unused class component state. | |
6363
| [`no-useless-fragment`](no-useless-fragment) | 1️⃣ | `🔍` `⚙️` | Prevents using useless `fragment` components or `<>` syntax. | |
6464
| [`prefer-destructuring-assignment`](prefer-destructuring-assignment) | 0️⃣ | `🔍` | Enforces using destructuring assignment over property assignment. | |
65-
| [`prefer-react-namespace-import`](prefer-react-namespace-import) | 0️⃣ | `🔍` `🔧` | Enforce React is imported via a namespace import | |
65+
| [`prefer-react-namespace-import`](prefer-react-namespace-import) | 0️⃣ | `🔍` `🔧` | Enforces React is imported via a namespace import | |
6666
| [`prefer-read-only-props`](prefer-read-only-props) | 0️⃣ | `🔍` `💭` | Enforces read-only props in components. | |
6767
| [`prefer-shorthand-boolean`](prefer-shorthand-boolean) | 0️⃣ | `🔍` `🔧` | Enforces using shorthand syntax for boolean attributes. | |
6868
| [`prefer-shorthand-fragment`](prefer-shorthand-fragment) | 0️⃣ | `🔍` | Enforces using shorthand syntax for fragments. | |

website/pages/docs/rules/prefer-react-namespace-import.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ react-x/prefer-react-namespace-import
1818

1919
## What it does
2020

21-
Enforce React is imported via a namespace import.
21+
Enforces React is imported via a namespace import.
2222

2323
## Examples
2424

website/pages/docs/rules/web-api-no-leaked-event-listener.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ react-web-api/no-leaked-event-listener
2525

2626
## What it does
2727

28-
Enforce that every `addEventListener` in a component or custom hook has a corresponding `removeEventListener`.
28+
Enforces that every `addEventListener` in a component or custom hook has a corresponding `removeEventListener`.
2929

3030
## Why is this bad?
3131

website/pages/docs/rules/web-api-no-leaked-interval.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ react-web-api/no-leaked-interval
2525

2626
## What it does
2727

28-
Enforce that every `setInterval` in a component or custom hook has a corresponding `clearInterval`.
28+
Enforces that every `setInterval` in a component or custom hook has a corresponding `clearInterval`.
2929

3030
## Why is this bad?
3131

website/pages/docs/rules/web-api-no-leaked-resize-observer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ react-web-api/no-leaked-resize-observer
2525

2626
## What it does
2727

28-
Enforce that every `ResizeObserver` created in a component or custom hook has a corresponding `ResizeObserver.disconnect()`.
28+
Enforces that every `ResizeObserver` created in a component or custom hook has a corresponding `ResizeObserver.disconnect()`.
2929

3030
## Why is this bad?
3131

website/pages/docs/rules/web-api-no-leaked-timeout.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ react-web-api/no-leaked-timeout
2525

2626
## What it does
2727

28-
Enforce that every `setTimeout` in a component or custom hook has a corresponding `clearTimeout`.
28+
Enforces that every `setTimeout` in a component or custom hook has a corresponding `clearTimeout`.
2929

3030
## Why is this bad?
3131

0 commit comments

Comments
 (0)