Skip to content

Commit

Permalink
feat: export a parse function for compatibility usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 3, 2019
1 parent c096483 commit 0fdaf9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rxts/eslint-plugin-mdx",
"version": "0.7.0",
"version": "0.7.1",
"description": "ESLint Parser/Plugin for MDX",
"repository": "[email protected]:rx-ts/eslint-plugin-mdx.git",
"author": "JounQin <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export const parseForESLint = (

return {
ast,
parserServices: services,
services,
} as Linter.ESLintParseResult
}

export const parse = (code: string, options: Linter.ParserOptions = {}) =>
parseForESLint(code, options).ast

0 comments on commit 0fdaf9f

Please sign in to comment.