Files
supabase-vercel-tedd[bot] f4a929907b chore(studio): promote jsx-a11y/heading-has-content to error (#54320)
## Problem

`jsx-a11y/heading-has-content` is tracked by the Studio ESLint ratchet
with a baseline of 0 violations. The ratchet stops new violations from
adding up, but the rule is still only a warning, so the editor and
`lint` don't flag a new empty heading as an error.

## Solution

Promote the rule to `error` in the Studio ESLint config, and remove its
ratchet bookkeeping from `.github/eslint-rule-baselines.json` and
`scripts/ratchet-rules.json`. No source file breaks the rule, so no code
changes are needed.

## How to verify

1. `pnpm --filter studio run lint:ratchet` reports no regressions.
2. `pnpm --filter studio run lint` reports 0 errors.
3. `pnpm exec eslint --print-config <any studio file>` from
`apps/studio` shows `jsx-a11y/heading-has-content` at severity 2
(error).

## Checks

Ran `pnpm --filter studio run lint:ratchet` (no regressions), `eslint .`
in `apps/studio` (0 errors, no `heading-has-content` findings), `eslint
--print-config` (rule resolves to error), and `oxfmt --check` on the
changed files. Skipped the typecheck because no TypeScript file changed.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5253](https://linear.app/supabase/issue/FE-5253/weekly-eslint-ratchet-review-for-supabasesupabase-appsstudio).
Tedd doesn't read comments on this PR.

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-01 11:02:14 +01:00
..