Registry / testing / eslint-plugin-etc-misc

eslint-plugin-etc-misc

JSON →
library1.1.1jsnpmunverified

An ESLint plugin that combines and extends the rules from eslint-plugin-etc and eslint-plugin-misc, providing a unified set of linting rules for TypeScript projects. Current stable version is v1.1.1, released in May 2026. The package is actively maintained with frequent releases (10+ versions in two months). Key differentiators: merges two popular rule sets into one plugin, includes TypeScript types, leverages ESLint flat config (v9+), and requires TypeScript 5+. Release cadence is weekly or more frequent. Alternative to installing separate plugins.

npm install eslint-plugin-etc-misc
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-ETC-
E
eslint-plugin-etc-misc
testingjavascriptv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
import plugin from 'eslint-plugin-etc-misc'
const plugin = require('eslint-plugin-etc-misc')
ESM-only since v1.0.0; CJS require not supported
configs
import { configs } from 'eslint-plugin-etc-misc'
import plugin from 'eslint-plugin-etc-misc' then plugin.configs
Named export for flat config; default export contains all rules
rules
import { rules } from 'eslint-plugin-etc-misc'
Named export for custom rule configuration; TypeScript supports this import

Shows how to set up the plugin with TypeScript project in ESLint flat config, including recommended config and custom rules.

// eslint.config.js import plugin from 'eslint-plugin-etc-misc'; import tsParser from '@typescript-eslint/parser'; import tsPlugin from '@typescript-eslint/eslint-plugin'; export default [ plugin.configs.recommended, { files: ['**/*.ts', '**/*.tsx'], languageOptions: { parser: tsParser, parserOptions: { project: './tsconfig.json', }, }, plugins: { '@typescript-eslint': tsPlugin, }, rules: { 'etc-misc/no-unused-vars': 'error', 'etc-misc/consistent-type-imports': 'error', }, }, ];
Debug
Known issues
breakingRequires ESLint v9+ with flat config; incompatible with legacy eslintrc
fix
Upgrade to ESLint v9 and migrate to flat config
affects: <1.0.0
breakingMinimum Node.js version 20.19.0 required since v1.1.0
fix
Update Node.js to v20.19.0 or later
affects: >=1.1.0
gotchaDefault export is the plugin object with all rules, not a config array
fix
Use named import { configs } for recommended config, or spread the default export
affects: >=1.0.0
deprecatedRule 'no-unused-vars' replaced by TypeScript-native version in v1.0.5
fix
Use '@typescript-eslint/no-unused-vars' instead
affects: >=1.0.5
Errors
Common errors & fixes
Error: Failed to load plugin 'etc-misc' declared in '...': Cannot find module 'eslint-plugin-etc-misc'
Plugin not installed or name mismatch (e.g., using 'eslint-plugin-etc-misc' vs 'etc-misc')
fix
npm install eslint-plugin-etc-misc --save-dev and ensure correct name in config
Configuration for rule 'etc-misc/no-unused-vars' is invalid: Value "error" is not accepted. Expected one of: "off", "warn", "error"
Rule severity must be lowercase string
fix
Use '"error"' (lowercase) instead of '"Error"' or '"ERROR"'
TypeError: plugin.configs is not iterable
Flat config expects array, but default export is an object
fix
Use plugin.configs.recommended instead of spreading plugin directly
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for plugin to work
typescriptrequiredpeer dependency required for TypeScript rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-etc-misc — npm install eslint-plugin-etc-misc · libregistry