Skip to main content
Run any Skill in Manus
with one click

sanity-schema-lint-suppressions

Stars16
Forks7
UpdatedJuly 7, 2026 at 16:25

How to recognise, fix, and suppress false-positive warnings from the @sanity-labs/eslint-plugin schema rules — especially the name-based `sanity/schema-heading-level-in-schema` heuristic. Covers where the disable comment must go (above the `defineType` call, not the field), why TypeScript changes cannot silence these rules, the `Rule.custom<T>` generic constraint, and which Portable Text patterns are NOT affected. Use when an ESLint warning from `@sanity-labs/eslint-plugin` looks wrong, when a Sanity schema field is flagged for "appears to store heading levels", when adding a field whose name ends in `Level` / `h1`–`h6`, or when wiring `Rule.custom` validators on enum-typed string fields.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly