dyad:lint

Run pre-commit checks including formatting, linting, and type-checking, and fix any errors.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dyad:lint" with this command: npx skills add dyad-sh/dyad/dyad-sh-dyad-dyad-lint

Lint

Run pre-commit checks including formatting, linting, and type-checking, and fix any errors.

Instructions

Run formatting check and fix:

npm run fmt

This will automatically fix any formatting issues.

Run linting with auto-fix:

npm run lint:fix

This will fix any auto-fixable lint errors.

Fix remaining lint errors manually:

If there are lint errors that could not be auto-fixed, read the affected files and fix the errors manually. Common issues include:

  • Unused variables or imports (remove them)

  • Missing return types (add them)

  • Any other ESLint rule violations

Run type-checking:

npm run ts

Fix any type errors:

If there are type errors, read the affected files and fix them. Common issues include:

  • Type mismatches (correct the types)

  • Missing type annotations (add them)

  • Null/undefined handling issues (add appropriate checks)

Re-run all checks to verify:

After making manual fixes, re-run the checks to ensure everything passes:

npm run fmt && npm run lint && npm run ts

Summarize the results:

  • Report which checks passed

  • List any fixes that were made manually

  • If any errors could not be fixed, explain why and ask the user for guidance

  • If all checks pass, confirm the code is ready to commit

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

dyad:multi-pr-review

No summary provided by upstream source.

Repository SourceNeeds Review
General

remember-learnings

No summary provided by upstream source.

Repository SourceNeeds Review
General

dyad:feedback-to-issues

No summary provided by upstream source.

Repository SourceNeeds Review
General

dyad:plan-to-issue

No summary provided by upstream source.

Repository SourceNeeds Review