Converts VFile instances into ESLint-compatible LintResult arrays, enabling use of ESLint formatters with non-ESLint linting tools like remark. v4.0.0 is the current stable release; maintained by the unified collective, with TypeScript types included. ESM-only since v1, no CJS support. Differentiates by bridging vfile ecosystem to ESLint output format.
npm install vfile-to-eslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Processes a markdown file with remark-lint and outputs results using an ESLint formatter via toESLint.
Wrap the file in an array: toESLint([file])
Check the VFile for any additional metadata not captured by the LintResult type and handle separately.
Upgrade Node.js to version 16 or higher.
Use named import: import { toESLint } from 'vfile-to-eslint'Run 'npm install vfile-to-eslint' or ensure tsconfig.json includes node module resolution.
Use dynamic import: const { toESLint } = await import('vfile-to-eslint') or convert to ESM.Wrap the file in an array: toESLint([file])
Use named import: import { toESLint } from 'vfile-to-eslint'