This plugin provide rules to enforce the RORO (Receive an Object, Return an Object) pattern.
npm i -D eslint-plugin-roro
// eslint.config.mjs
import eslintPluginRORO from "eslint-plugin-roro";
export default [eslintPluginRORO.configs.recommended];
Name | Description |
---|---|
receive-object | Enforce functions to receive only a single object. |
return-object | Enforce functions to return an object. |