Skip to content

c-ehrlich/eslint-plugin-use-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@c-ehrlich/eslint-plugin-use-server

Disallows top level "use server"

Instructions

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",
    }
}