Show HN: One ESLint rule to kill the "ChatGPT em dash" in your codebase
Category: devtools
Tags: eslint, linting, code-quality, automation, unicode
Score: 5.0/10 (Innovation: 4, Technical: 3, Documentation: 8, Utility: 5)
An ESLint plugin that automatically detects and fixes Unicode em dashes (U+2014) in codebases, replacing them with plain hyphens. It's interesting because it addresses a specific, modern pain point caused by AI-generated code and document editors leaking non-ASCII punctuation into source files, which can break tooling and create inconsistency.
Target audience: frontend devs, backend devs, full-stack devs
Repository: https://github.com/oleg-koval/drop-em-dash-eslint-rule · JavaScript · MIT · 3 stars
View on Hacker News