For example, remark-lint returns a
VFile, which you could pass through this module to display it using an ESLint formatter.
npm install vfile-to-eslint
const remark = require('remark') const recommended = require('remark-preset-lint-recommended') const eslintFormatterPretty = require('eslint-formatter-pretty') const vfileToEslint = require('vfile-to-eslint') const file = remark() .use(recommended) .processSync('## Hello world!') console.log(eslintFormatterPretty(vfileToEslint([file])))
Object that can be passed directly to an ESLint formatter.
List of files (
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.