Fix Type-Only Imports in TypeScript
Overview: Ensure that the TypeScript version is 3.8 or higher to support import type syntax. Before applying changes, validate that the imported types are not used as runtime values.
Browse agent skills, compare use cases, and open the original source. Share your results after trying a skill.
Overview: Ensure that the TypeScript version is 3.8 or higher to support import type syntax. Before applying changes, validate that the imported types are not used as runtime values.
Overview: Ensure that all == and != operators are replaced with === and !==. Explicitly convert types using functions like Number(), String(), or Boolean() when comparing values of different types. Be cautious with the + operator, as it may concatenate strings instead of adding numbers.
Overview: Before starting, ensure the server is configured to allow performance monitoring tools and that access to server logs and CDN analytics is available. The first deliverable is a TTFB audit report, typically in a structured format such as JSON or CSV, highlighting bottlenecks and recommendations.
Overview: Ensure translation keys are descriptive and scoped to their feature context. Extract all user-visible strings and avoid hardcoding copy in components.
Overview: Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Consider self-hosting critical scripts if necessary.
Overview: Use relative units (rem, em) for font sizes instead of fixed pixels. Ensure containers can grow with text content. Avoid fixed-height containers that clip overflowing text. Test with browser text-size preferences.
Overview: Install a pseudo-locale build step in local development and CI for visual testing. Ensure that min-inline-size is used instead of inline-size on text containers.
Overview: Ensure that test coverage thresholds are configured in Jest, Vitest, or your testing framework, and that coverage checks are added to CI/CD pipelines. Exclude generated code, type definitions, and config files from coverage calculations.
Overview: Ensure the Terms of Service page is accessible and has a stable URL. For enforceable acceptance, require users to check a checkbox 'I agree to the Terms of Service' during signup.
Overview: Use E.164 format for `tel:` links (e.g., `+15551234567`) to ensure international compatibility. Ensure that phone numbers and emails are not displayed as plain text, as this forces users to copy and paste, reducing conversion rates.
Overview: Ensure that the `headers` attribute references valid and existing `id` values of `<th>` elements. Separate multiple header IDs with spaces when necessary.
Overview: Ensure the rendered HTML includes aria-controls and aria-labelledby attributes to connect tabs with their corresponding panels. Verify that only one tab is focusable at a time using roving tabindex.