/** * @fileoverview Require contract-package response schemas before response-shape assertions. * * Migration playbook: * 1. Find the endpoint in its `@clipboard-health/contract-*` package and use the schema for the * asserted status code, commonly `contract.endpoint.responses[status]` or an exported * `XResponseSchema`. * 2. Parse before shape assertions with `parseBody(response, schema)` or * `schema.parse(response.parsedBody)`, then assert on the parsed value. * 3. If the contract package has no response schema, file a contract-gap ticket and add the schema * there. An inline permissive schema or ESLint exemption is not a contract oracle. * * Warn-to-error ratchet: * Enable the rule as a warning across the migration scope. Migrate one directory at a time and add * an error-level override for each completed directory. CI may suppress the warning backlog with * `--quiet`, making every error-level directory a blocking ratchet. Once the full scope is migrated, * replace the overrides with one error-level setting and restore the zero-warning budget. */ import type { Rule } from "@oxlint/plugins"; declare const rule: Rule; export default rule;