Skip to content
On this page

effector/enforce-gate-naming-convention

Enforcing naming conventions helps keep the codebase consistent, and reduces overhead when thinking about how to name a variable with gate. Every gate is a React-component, so it should be named as regular React-component.

Configuration

json
{
  "rules": {
    "effector/enforce-gate-naming-convention": "error"
  }
}

Examples

ts
// 👍 nice name
const MyFavoritePageGate = createGate();

// 👎 bad name
const otherFavoritePageGate = createGate();

Released under the MIT License.