Disallows top level "use server"
Add the following to your eslintrc
:
{
plugins: [
// other plugins...
"@c-ehrlich/eslint-plugin-use-server",
],
rules: {
// other rules...
"@c-ehrlich/use-server/no-top-level-use-server": "error",
}
}