{"versions":{"0.0.0":{"name":"eslint-merge-processors","type":"module","version":"0.0.0","packageManager":"pnpm@8.11.0","description":"Merge multiple ESLint processors to behave like one","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-merge-processors#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-merge-processors.git"},"bugs":{"url":"https://github.com/antfu/eslint-merge-processors/issues"},"keywords":["eslint","eslint-processor"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"*"},"devDependencies":{"@antfu/eslint-config":"^2.2.2","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.6","@types/eslint":"^8.44.8","@types/node":"^20.10.3","bumpp":"^9.2.0","eslint":"^8.55.0","esno":"^4.0.0","lint-staged":"^15.2.0","pnpm":"^8.11.0","rimraf":"^5.0.5","simple-git-hooks":"^2.9.0","typescript":"^5.3.2","unbuild":"^2.0.0","vite":"^5.0.5","vitest":"^1.0.0-beta.6"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"gitHead":"3baa7db6959cd2c6bf0efbeaba036a98887781a1","_id":"eslint-merge-processors@0.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-xsPLkGVgfMENeyL9Ng4CcWDsPXMvi6iUH7IHzzY1pwFyLvCGDDwo/y/oVtFlZNnREdahP8gcObJk0Fo8S0Bo/A==","shasum":"adfdfdceedecc6f87ba219fb8659a2b01bf21c14","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-merge-processors/-/eslint-merge-processors-0.0.0.tgz","fileCount":8,"unpackedSize":8983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBuS7ivpZEV8Yie5jFf2g3jZmts6vhSG3cNmQ2oEv9WZAiATGP0wibVoRucgb/Wp9X2K2g0Wr/N/60jhYHx/PPu4Aw=="}]},"_npmUser":{"name":"anonymous","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-merge-processors_0.0.0_1701966716542_0.10349964365307818"},"_hasShrinkwrap":false,"contributors":[]},"0.1.0":{"name":"eslint-merge-processors","type":"module","version":"0.1.0","packageManager":"pnpm@8.11.0","description":"Merge multiple ESLint processors to behave like one","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-merge-processors#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-merge-processors.git"},"bugs":{"url":"https://github.com/antfu/eslint-merge-processors/issues"},"keywords":["eslint","eslint-processor"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"*"},"devDependencies":{"@antfu/eslint-config":"^2.2.2","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.6","@types/eslint":"^8.44.8","@types/node":"^20.10.3","bumpp":"^9.2.0","eslint":"^8.55.0","esno":"^4.0.0","lint-staged":"^15.2.0","pnpm":"^8.11.0","rimraf":"^5.0.5","simple-git-hooks":"^2.9.0","typescript":"^5.3.2","unbuild":"^2.0.0","vite":"^5.0.5","vitest":"^1.0.0-beta.6"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"gitHead":"cd740dcee1e005729d5205125dac839a3a93d180","_id":"eslint-merge-processors@0.1.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-IvRXXtEajLeyssvW4wJcZ2etxkR9mUf4zpNwgI+m/Uac9RfXHskuJefkHUcawVzePnd6xp24enp5jfgdHzjRdQ==","shasum":"30ac4c59725a63d12a9677de7d2b2ec2a09fb779","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-merge-processors/-/eslint-merge-processors-0.1.0.tgz","fileCount":8,"unpackedSize":8983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0djtLuvaAQChfBeys2i8gWy95rUdEPIsw54nwEMnjGwIgG1/pn/+BNqSATv1Jb+X4YfvM5sJ5ibpaOpnDH3aQGc0="}]},"_npmUser":{"name":"anonymous","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-merge-processors_0.1.0_1701969238574_0.5459122465176847"},"_hasShrinkwrap":false,"contributors":[]},"1.0.0":{"name":"eslint-merge-processors","type":"module","version":"1.0.0","packageManager":"pnpm@9.15.3","description":"Merge multiple ESLint processors to behave like one","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-merge-processors#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-merge-processors.git"},"bugs":{"url":"https://github.com/antfu/eslint-merge-processors/issues"},"keywords":["eslint","eslint-processor"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"*"},"devDependencies":{"@antfu/eslint-config":"^3.12.2","@antfu/ni":"^23.2.0","@antfu/utils":"^8.0.0","@types/eslint":"^9.6.1","@types/node":"^22.10.5","bumpp":"^9.10.0","eslint":"^9.17.0","esno":"^4.8.0","lint-staged":"^15.3.0","pnpm":"^9.15.3","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","typescript":"^5.7.3","unbuild":"^3.2.0","vite":"^6.0.7","vitest":"^2.1.8"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-merge-processors@1.0.0","gitHead":"eb270422e82df4978c7662384297dc27cf0085f0","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-4GybyHmhXtT7/W8RAouQzNM0791sYasJCTYHIAYjuiJvbNFY0jMKkoESREhX+mjX37dxiN6v4EqhZ1nc0tJF7A==","shasum":"1458e5859993ec502d75db405cfecc0a078de7b7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-merge-processors/-/eslint-merge-processors-1.0.0.tgz","fileCount":8,"unpackedSize":8976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhc0325QPWDWy1fxUVPEgYca+Zgvm6/s7NftocrbPSdAiEAxdVOEZRTXMNSBCpgdzhP3ocO1c7pJKK5TbdufNYa7Cc="}],"size":3066},"_npmUser":{"name":"anonymous","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-merge-processors_1.0.0_1736415794376_0.6124817734898536"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-09T09:43:14.557Z","publish_time":1736415794557,"_source_registry_name":"default","contributors":[]},"2.0.0":{"name":"eslint-merge-processors","type":"module","version":"2.0.0","packageManager":"pnpm@10.2.1","description":"Merge multiple ESLint processors to behave like one","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/eslint-merge-processors#readme","repository":{"type":"git","url":"git+https://github.com/antfu/eslint-merge-processors.git"},"bugs":{"url":"https://github.com/antfu/eslint-merge-processors/issues"},"keywords":["eslint","eslint-processor"],"sideEffects":false,"exports":{".":"./dist/index.mjs"},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.mts"]}},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"peerDependencies":{"eslint":"*"},"devDependencies":{"@antfu/eslint-config":"^4.1.1","@antfu/ni":"^23.3.1","@antfu/utils":"^8.1.0","@types/eslint":"^9.6.1","@types/node":"^22.13.1","bumpp":"^10.0.2","eslint":"^9.20.0","esno":"^4.8.0","lint-staged":"^15.4.3","pnpm":"^10.2.1","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","typescript":"^5.7.3","unbuild":"^3.3.1","vite":"^6.1.0","vitest":"^3.0.5"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"eslint-merge-processors@2.0.0","gitHead":"837209ee035e490394c3bf1a734b5ce24c0a2cfa","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-sUuhSf3IrJdGooquEUB5TNpGNpBoQccbnaLHsb1XkBLUPPqCNivCpY05ZcpCOiV9uHwO2yxXEWVczVclzMxYlA==","shasum":"f1e02bd863962fab7fd038c293979283e61b473c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-merge-processors/-/eslint-merge-processors-2.0.0.tgz","fileCount":6,"unpackedSize":7362,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH3J7FyxRtXGqesNQbBWuLBiQfrpsGJYxzc7jY8OX/EqAiEA8muv+0a7JTqs3UILPxT/cz6nI8PJrOllJWOSXDEWUNE="}],"size":2935},"_npmUser":{"name":"anonymous","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-merge-processors_2.0.0_1738984450488_0.4400402484495094"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-08T03:14:10.675Z","publish_time":1738984450675,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.0.0"},"name":"eslint-merge-processors","time":{"created":"2023-12-07T17:35:18.901Z","0.0.0":"2023-12-07T16:31:56.872Z","modified":"2025-02-08T03:16:34.800Z","0.1.0":"2023-12-07T17:13:58.792Z","1.0.0":"2025-01-09T09:43:14.557Z","2.0.0":"2025-02-08T03:14:10.675Z"},"readme":"# eslint-merge-processors\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nMerge multiple ESLint processors to behave like one\n\n## Install\n\n```bash\nnpm i eslint-merge-processors\n```\n\n```js\nimport { mergeProcessors } from 'eslint-merge-processors'\n\nconst processor = mergeProcessors([\n  processorA,\n  processorB,\n  // ...\n])\n```\n\n## Examples\n\n### Markdown\n\nLint `.md` files with `eslint-plugin-markdown`.\n\nBy default, `eslint-plugin-markdown`'s processor will create a virtual file for each code snippet in the markdown file, **but not the original `.md` file itself**. This means the original `.md` file will not be linted.\n\nWith this package, along with the `processorPassThrough` processor, you can now fix that:\n\n```ts\nimport {\n  mergeProcessors,\n  processorPassThrough\n} from 'eslint-merge-processors'\nimport markdown from 'eslint-plugin-markdown'\n\n// ESlint Flat config\nexport default [\n  {\n    files: ['**/*.md'],\n    plugins: {\n      markdown\n    },\n    processor: mergeProcessors([\n      // This allow the original `.md` file to be linted\n      processorPassThrough,\n      // The markdown processor\n      markdown.processors.markdown,\n      // other processors if needed\n    ])\n  }\n]\n```\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/eslint-merge-processors?style=flat&colorA=080f12&colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/eslint-merge-processors\n[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-merge-processors?style=flat&colorA=080f12&colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/eslint-merge-processors\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/eslint-merge-processors?style=flat&colorA=080f12&colorB=1fa669&label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=eslint-merge-processors\n[license-src]: https://img.shields.io/github/license/antfu/eslint-merge-processors.svg?style=flat&colorA=080f12&colorB=1fa669\n[license-href]: https://github.com/antfu/eslint-merge-processors/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/eslint-merge-processors","users":{}}