0.0.2 • Published 2 years ago

eslint-plugin-use-server-client v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

eslint-plugin-use-server-client

Enforces the use of 'use server' or 'use client' at the begining of files.

Installation

yarn add eslint-plugin-use-server-client

Usage

Add use-server-client to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [ "use-server-client" ]
}

Then configure the rules you want to use under the rules section.

on src/client

{
  "rules": {
    "use-server-client/use-client": "error",
  }
}

on src/server

{
  "rules": {
    "use-server-client/use-server": "error",
  }
}
0.0.2

2 years ago

0.0.1

2 years ago