Shared Logic

Move logic copied between rules into a shared util, reuse the utils that already exist instead of reimplementing them, and migrate call sites when adding a new one. Use when a PR adds a non-trivial helper function to a rule, or reimplements type or AST logic that type-utils already provides.

typescript-eslint 16c1c11 5.0 KB Updated

File contents

typescript-eslint/typescript-eslint/tree/main/.agents/skills/shared-logic commit 16c1c1118e

Frequently asked questions

npx skillmds@latest add typescript-eslint/shared-logic