Skip to content

astro check --watch #473

@matthewp

Description

@matthewp

Body

Summary

Add a --watch flag to astro check.

Background & Motivation

In development mode there isn't a way to know if your .astro files contain no errors, aside from editor feedback. If you use astro check you will know about errors, but might not see them until CI unless you remember to run the command before pushing.

Goals

  • A way to check TS errors in .astro files during development workflow.

Non-Goals

  • Having errors reported in the UI. This could be a nice enhancement in the future but would come with some downsides (such as possibly slowing down dev) that we want to punt on.

Example

astro check --watch

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions