You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Context**
This PR is a maintenance pass to make future feature work less noisy and
easier to review. It standardizes formatting and pre-commit behavior,
and fixes a handful of TypeScript and accessibility lint issues that
otherwise keep resurfacing during unrelated changes.
**What Changed**
- Tooling / formatting
- Add Prettier config + lint-staged + Husky pre-commit hook.
- Add editor settings to format on save (modifications only) and keep
imports organized.
- Disable the “no inline styles” hint rule (the codebase intentionally
uses inline styles in many places).
- TypeScript / module resolution
- Add `@types/node` where Node built-ins are imported (SSG + example
configs).
- Stop excluding SSG files from the root TS project so they are
typechecked normally.
- Define `ImportMetaEnv` to type `import.meta.env.SSG_MD`, `EXAMPLES`,
`SSG_PREVIEWS`.
- Fix Shiki dynamic import typing (`import('shiki')` is a Promise;
`.then` is not a type member).
- Accessibility lint fixes
- Use valid, literal `aria-orientation` values on the split pane
separator.
- Add accessible names (`aria-label`) for `<select>` and related
`<input>` controls in the example app.
**Why This Helps**
- Prevents formatting churn in future PRs (review diffs stay focused on
behavior changes).
- Avoids repeated TS noise around Node built-ins and `import.meta.env`
typing.
- Keeps a11y lint from blocking unrelated changes.
**Verification**
- `pnpm typecheck` (repo root)
- `pnpm exec tsc --noEmit` (under `example/`)
0 commit comments