A utility to combine multiple ESLint processors into a single processor, enabling parallel linting of different file types within one ESLint configuration. Current stable version is 2.0.0, which is ESM-only and requires ESLint flat config. Maintained by Anthony Fu, it differentiates from manual chaining by providing a clean merge function and a pass-through processor for original files. It is commonly used with eslint-plugin-markdown to lint both the markdown file and its embedded code snippets.
npm install eslint-merge-processorsVerified import paths — ran on the pinned version, not inferred.
Shows how to combine a pass-through processor with eslint-plugin-markdown's processor to lint both the .md file and its code snippets.
Switch to import syntax or use dynamic import() in CommonJS. Update your ESLint config to use flat config (ESLint >=9).
Ensure processorPassThrough is first if you want to lint the original file alongside other processors.
Test the combination thoroughly; consider filing issues upstream for incompatible processors.
Run 'npm install eslint-merge-processors' in your project root.
Use dynamic import: const { mergeProcessors } = await import('eslint-merge-processors'); or convert your project to ESM.Ensure you are using named imports: import { mergeProcessors } from 'eslint-merge-processors'. Check tsconfig.json for 'moduleResolution' set to 'node' or 'node16'.No dependency data recorded yet.