markdown-eslint-parser

1.2.1 • Public • Published

markdown-eslint-parser

The ESLint custom parser for .md files. Mainly to use together with eslint-plugin-md.

It doesn't actually produce markdown AST, just returns markdown code in a format acceptable by eslint for use with eslint-plugin-md. To be clear, it returns Js AST with an empty "Program" node, but this node contains property mdCode that contains markdown in string format.

Usage

Typically you will use it together with eslint-plugin-md. To use parser as a standalone package, just specify it in your eslintrc:

yarn add -D markdown-eslint-parser
// .eslintrc
module.exports = {
  overrides: {
    '*.md': {
      parser: 'markdown-eslint-parser',
    },
  },
}

Package Sidebar

Install

npm i markdown-eslint-parser

Weekly Downloads

8,574

Version

1.2.1

License

MIT

Unpacked Size

2.67 kB

Total Files

7

Last publish

Collaborators

  • leo-buneev