Registry /
testing / eslint-plugin-erasable-syntax-only
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import erasableSyntaxOnly from 'eslint-plugin-erasable-syntax-only'
✗ const erasableSyntaxOnly = require('eslint-plugin-erasable-syntax-only')
ESM-only; requires Node.js >=20.18.0 and a bundler/module system that supports ESM. CommonJS require will fail.
erasableSyntaxOnly.configs.recommended
✓ erasableSyntaxOnly.configs.recommended
✗ erasableSyntaxOnly.configs['recommended']
Accessing configs via string key is also valid; both work.
plugins
✓ plugins: { 'erasable-syntax-only': erasableSyntaxOnly }
When using eslintrc format (not recommended), plugin must be registered under the short name.
Shows how to add the plugin's recommended config to a flat ESLint configuration using typescript-eslint.
import eslint from '@eslint/js';
import erasableSyntaxOnly from 'eslint-plugin-erasable-syntax-only';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
erasableSyntaxOnly.configs.recommended, // 👈
);
// Then run ESLint on your TypeScript files
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/eslint-plugin-erasable-syntax-only/dist/index.js from /path/to/.eslintrc.cjs not supported.
Package is ESM-only; CommonJS require is not allowed.
fixConvert your ESLint config to ESM (flat config) and use import syntax, or ensure your bundler supports ESM.
ESLint: Failed to load plugin 'erasable-syntax-only' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-erasable-syntax-only'
Plugin not installed, or ESLint version too old.
fixRun 'npm install eslint-plugin-erasable-syntax-only --save-dev' and ensure ESLint >=9.
Audit
Dependencies
@typescript-eslint/parserrequiredRequired peer dependency for parsing TypeScript, >=8
eslintrequiredRequired peer dependency, ESLint >=9
typescriptrequiredRequired peer dependency, TypeScript >=5