id: mod-no-test-only
language: tsx
severity: error
message: .only left in test file
note: '{"severity":"high","category":"convention","resolution":"Remove .only before commit so the full test file executes in CI and locally."}'
files:
  - '**/*.test.tsx'
  - '**/*.spec.tsx'
rule:
  any:
    - pattern: describe.only($$$ARGS)
    - pattern: it.only($$$ARGS)
    - pattern: test.only($$$ARGS)
