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 Updated

File contents

typescript-eslint/typescript-eslint commit 16c1c1118e

Frequently asked questions

npx get-skill add typescript-eslint/shared-logic