Typescript

Typescript from factory-ai/factory-plugins.

by @factory-ai 3 skills

Skills in this plugin

3
  1. No Use Effect · factory-ai
    Enforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs with useEffect, or when an agent adds useEffect "just in case." Provides the five replacement patterns and the useMountEffect escape hatch.
    1 install
  2. Ban Type Assertions · factory-ai
    Ban `as` type assertions in a package via the `@typescript-eslint/consistent-type-assertions` lint rule, replacing them with compiler-verified type-safe alternatives. Use when enabling the assertion ban in a new package or fixing violations in an existing one.
    1 install
  3. Fix Knip Unused Exports · factory-ai
    Fix knip "Unused exports" violations. Handles all violation categories: test-only exports (extract to new file), dead barrel re-exports (remove from index.ts), and internally-only-used exports (un-export). Use when `npm run knip` reports unused exports.
    1 install