Analysis updated 2026-07-05 · repo last pushed 2026-07-01
Gradually migrate an existing TypeScript project to run directly in Node.js without a build step.
Identify and remove enums, namespaces, and other non-erasable TypeScript patterns one rule at a time.
Enforce erasable-syntax-only rules on specific files while excluding others during migration.
| joshuakgoldberg/eslint-plugin-erasable-syntax-only | alexvilelabah/bah-browser | rosekhlifa/image-studio | |
|---|---|---|---|
| Stars | 51 | 51 | 50 |
| Language | TypeScript | TypeScript | TypeScript |
| Last pushed | 2026-07-01 | — | — |
| Maintenance | Active | — | — |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires ESLint version 9 or higher and Node.js 20.18.0 or newer.
Node.js recently added the ability to run TypeScript files directly, without a separate compilation step. But there's a catch: Node can only handle "erasable" TypeScript code, meaning features that can be simply stripped away to leave plain JavaScript. Some TypeScript features, like enums, namespaces, and certain class parameter shortcuts, don't work this way and will cause errors. This ESLint plugin helps teams catch those problematic patterns in their code before they become a problem. The tool works as an add-on for ESLint, a popular code-checking utility. Once installed, it flags four specific TypeScript features that aren't erasable: enums, import aliases, namespaces, and class parameter properties. Some of these issues can even be auto-fixed by your editor. The plugin gives you four separate rules you can turn on individually rather than forcing an all-or-nothing switch. This is primarily for teams with an existing TypeScript codebase who want to migrate toward running their code directly through Node.js without a build step. If your project is large and uses enums or namespaces throughout, you can't just flip a switch, you'd have hundreds of errors at once. This plugin lets you tackle one rule at a time, exclude certain files temporarily, and add inline comments to suppress specific warnings where needed. It turns an overwhelming migration into a gradual cleanup. Notably, if you've already enabled TypeScript's own --erasableSyntaxOnly compiler flag, you don't need this plugin at all. The value here is the flexibility: TypeScript's flag is project-wide, while this plugin lets you be surgical about which rules apply where. The project requires ESLint version 9 or higher and Node.js 20.18.0 or newer.
An ESLint plugin that flags TypeScript features incompatible with Node.js direct execution, like enums and namespaces, so teams can gradually migrate to running TypeScript without a build step.
Mainly TypeScript. The stack also includes TypeScript, ESLint, Node.js.
Active — commit in last 30 days (last push 2026-07-01).
This project's license is not specified in the explanation, so its usage terms are unknown.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.