Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c-ehrlich/eslint-plugin-use-server
Disallows top level "use server"
https://github.com/c-ehrlich/eslint-plugin-use-server
eslint eslint-plug nextjs use-server
Last synced: 5 days ago
JSON representation
Disallows top level "use server"
- Host: GitHub
- URL: https://github.com/c-ehrlich/eslint-plugin-use-server
- Owner: c-ehrlich
- Created: 2024-07-03T21:27:28.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-03T21:48:09.000Z (4 months ago)
- Last Synced: 2024-10-23T21:56:32.724Z (14 days ago)
- Topics: eslint, eslint-plug, nextjs, use-server
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@c-ehrlich/eslint-plugin-use-server
- Size: 10.7 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# @c-ehrlich/eslint-plugin-use-server
Disallows top level `"use server"`
## Instructions
Add the following to your `eslintrc`:
```js
{
plugins: [
// other plugins...
"@c-ehrlich/eslint-plugin-use-server",
],
rules: {
// other rules...
"@c-ehrlich/use-server/no-top-level-use-server": "error",
}
}