Skip to content

astro-check (error): Delete or fix _fixable/index.astro #575

@lsr-explore

Description

@lsr-explore

Delete or fix _fixable/index.astro

Labels: dead-code, cleanup
Estimated PR size: 1 file

Note

Ticket description was generated using Claude Code. Review before starting on a fix.

Note

The following issue adds support for npm run astro:check

Summary

src/pages/_fixable/index.astro has 2 errors (and 1 unused-import warning). The file is _-prefixed (not routed), so it's not user-facing. Either delete it or fix the issues.

astro check errors

src/pages/_fixable/index.astro:273:17 - error ts(2322): Type 'boolean' is not assignable to type 'string'.

273                 alt
                    ~~~
src/pages/_fixable/index.astro:272:17 - error ts(2322): Type '"200px"' is not assignable to type 'number | `${number}` | undefined'.

272                 width="200px"
                    ~~~~~
src/pages/_fixable/index.astro:19:7 - warning ts(6133): 'fixBgNoColor' is declared but its value is never read.

19 const fixBgNoColor = await getImage({ src: chickenBg, format: "webp" });

The alt error at line 273 is particularly problematic: alt with no value parses as alt={true}, which renders as no alt text at all — an accessibility issue if this file ever gets routed.

Suggested fix

Investigate whether _fixable/ is meant to be a fixture/scratch area or a feature in progress.

  • If scratch/fixture: delete the directory.
  • If feature WIP: fix the two errors (width="200px"width={200}, add a real alt value), remove the unused import.

Acceptance criteria

  • Either the file is deleted or all 3 issues clear.
  • If kept, the Image component renders correctly with valid props.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions