Back to browse
GitHub Repository

ESLint plugin: disallow em dash (U+2014) and autofix to hyphen

3 starsJavaScript

One ESLint rule to kill the "ChatGPT em dash" in your codebase

by orthodoz·Apr 22, 2026·2 points·0 comments

AI Analysis

MidNiche GemCozy

Single-rule ESLint plugin autofixes em dashes to hyphens in CI.

Strengths
  • Autofix on save means zero manual cleanup for teams adopting it.
  • Targets U+2014 specifically, ignores en dashes to avoid style wars.
  • Flat config and legacy .eslintrc support for ESLint 9+ compatibility.
Weaknesses
  • Extremely narrow scope—one character rule most teams don't need.
  • Competes with existing no-control-character rules in standard ESLint configs.
Target Audience

JavaScript/TypeScript developers using ESLint

Similar To

eslint-plugin-no-unicode · eslint-plugin-ascii

Similar Projects

Developer Tools●●Solid

Detect Drift in TypeScript codebases

AST-based contracts beat raw code for AI, but codebase analyzers are increasingly crowded.

Niche GemBig Brain
AmiteK
103mo ago