mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## 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>
14 lines
394 B
JSON
14 lines
394 B
JSON
[
|
|
"react-hooks/exhaustive-deps",
|
|
"@tanstack/query/exhaustive-deps",
|
|
"@typescript-eslint/no-explicit-any",
|
|
"no-restricted-exports",
|
|
"react/no-unstable-nested-components",
|
|
"jsx-a11y/control-has-associated-label",
|
|
"jsx-a11y/label-has-associated-control",
|
|
"jsx-a11y/no-redundant-roles",
|
|
"jsx-a11y/anchor-is-valid",
|
|
"valtio/state-snapshot-rule",
|
|
"fga/no-unguarded-migrating"
|
|
]
|