Show HN: One ESLint rule to kill the "ChatGPT em dash" in your codebase
Category: devtools
Tags: eslint, linting, code-quality, unicode, automation
Score: 5.0/10 (Innovation: 4, Technical: 3, Documentation: 8, Utility: 5)
An ESLint plugin that detects and automatically replaces Unicode em dashes (U+2014) with regular hyphens in code, comments, and strings. It's interesting because it addresses a specific, modern pain point of LLM-generated code and document editor copy-paste contamination, enforcing ASCII consistency with minimal configuration.
Target audience: backend devs, frontend devs, full-stack devs
Repository: https://www.npmjs.com/package/eslint-plugin-drop-em-dash · JavaScript · MIT · 1 stars
View on Hacker News