ESLint plugin providing TypeScript-focused, general-purpose lint rules. Current version 2.0.3 (stable). The package reimplements TSLint-etc rules for ESLint, covering areas like array mutation, commented-out code, const enums, deprecated APIs, and more. It requires TypeScript 4.0+ and ESLint 8. Some rules are opinionated and excluded from the recommended config, giving developers flexibility. Compared to @typescript-eslint/eslint-plugin, it offers unique rules like no-t, no-const-enum, and no-implicit-any-catch for Promise rejections.
npm install eslint-plugin-etcVerified import paths — ran on the pinned version, not inferred.
Configure eslint-plugin-etc with TypeScript parser and recommended rules. Shows plugins, extends, and custom rule setup.
Review the changelog on GitHub for breaking changes.
Check the documentation for each rule to ensure you are using the correct name.
Ensure the parserOptions.project points to a valid tsconfig.json and type information is available.
Add the rule to your 'rules' object with the desired severity.
Run 'npm install eslint-plugin-etc --save-dev'.
Use 'error' or 'warn' instead of 'true'.
Set parserOptions.project to a valid path to your tsconfig.json.