mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C063LNYJJKS/p1795307074102889)_ Before: `import/no-anonymous-default-export` was tracked in the Studio ESLint ratchet and ran as a warning, so new anonymous default exports could slip in. After: Studio has no violations of this rule, so it is no longer ratcheted and any new anonymous default export fails lint as an error. This graduates `import/no-anonymous-default-export` out of the ratchet and sets it to `error` in Studio's ESLint config. How: removed the rule from `apps/studio/scripts/ratchet-rules.json` and from both sections of `apps/studio/.github/eslint-rule-baselines.json`, and set it to `error` in `apps/studio/eslint.config.cjs`. I set it in the Studio config rather than the shared `eslint-config-supabase`, since `www` (25) and `docs` (1) still have violations. `eslint .` in `apps/studio` reports 0 errors and 0 violations of this rule, and a throwaway anonymous default export is flagged as an error. `lint:ratchet` passes. The bot's baseline PR (#53117) also edits this rule's entries in the baselines file, so one of the two will need a rebase. --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com>
15 lines
428 B
JSON
15 lines
428 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",
|
|
"jsx-a11y/heading-has-content",
|
|
"valtio/state-snapshot-rule",
|
|
"fga/no-unguarded-migrating"
|
|
]
|