Skip to content

Commit

Permalink
chore: add errors key for parseForESLint function (#7)
Browse files Browse the repository at this point in the history
* chore: add visitorKeys config

* feat: prettier format
  • Loading branch information
iChenLei authored Oct 20, 2021
1 parent dc05d6a commit 608e5f6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.1] - 2021-10-20
### Added
- Add `errors` visitor key for `parseForESLint`

## [0.1.0] - 2021-10-19
### Added
- Add more useful info on README.md
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wxml/parser",
"version": "0.1.0",
"version": "0.1.1",
"description": "A fast and tolerant wxml parser",
"type": "commonjs",
"main": "lib/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ function parseForESLint(code: string) {
ast: buildAst(cst, tokenVector, lexErrors, parseErrors, true),
services: {},
scopeManager: null,
visitorKeys: null,
visitorKeys: {
Program: ["errors", "body"],
},
};
}

Expand Down

0 comments on commit 608e5f6

Please sign in to comment.