Skip to content

feat: add custom Go linter with no-double-dash rule#7

Merged
ben-miru merged 2 commits intomainfrom
linter
Mar 23, 2026
Merged

feat: add custom Go linter with no-double-dash rule#7
ben-miru merged 2 commits intomainfrom
linter

Conversation

@ben-miru
Copy link
Copy Markdown
Contributor

Summary

  • Add tools/lint, a Go-based MDX prose linter with a no-double-dash rule that flags -- in prose (suggesting em dash replacement)
  • Scanner skips frontmatter, fenced code blocks, inline code, HTML comments, JSX tags, thematic breaks, table separators, and import/export lines
  • Integrate into scripts/lint.sh and CI workflow (setup-go step)
  • Fix 32 existing -- occurrences across 18 MDX files with proper em dashes

🤖 Generated with Claude Code

@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Mar 23, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
miru 🟢 Ready View Preview Mar 23, 2026, 9:29 PM

ben-miru and others added 2 commits March 23, 2026 14:29
Adds tools/lint, a Go-based MDX prose linter that flags '--' in prose
text (suggesting em dash replacement). The scanner skips frontmatter,
fenced code blocks, inline code, HTML comments, JSX tags, thematic
breaks, table separators, and import/export lines.

Integrated into scripts/lint.sh and CI workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix 32 occurrences of '--' in prose across 18 MDX files to use proper
em dashes, satisfying the new no-double-dash lint rule.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ben-miru ben-miru merged commit ab0cf7a into main Mar 23, 2026
5 checks passed
@ben-miru ben-miru deleted the linter branch March 23, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant