You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[async-server-action](docs/rules/async-server-action.md)| Require functions with the `use server` directive to be async |||| 💡 ||
296
297
|[boolean-prop-naming](docs/rules/boolean-prop-naming.md)| Enforces consistent naming for boolean props ||||||
297
298
|[button-has-type](docs/rules/button-has-type.md)| Disallow usage of `button` elements without an explicit `type` attribute ||||||
298
299
|[checked-requires-onchange-or-readonly](docs/rules/checked-requires-onchange-or-readonly.md)| Enforce using `onChange` or `readonly` attribute when `checked` is used ||||||
# Require functions with the `use server` directive to be async (`react/async-server-action`)
2
+
3
+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
4
+
5
+
<!-- end auto-generated rule header -->
6
+
7
+
Require Server Actions (functions with the `use server` directive) to be async, as mandated by the `use server`[spec](https://react.dev/reference/react/use-server).
8
+
9
+
This must be the case even if the function does not use `await` or `return` a promise.
0 commit comments