diff --git a/CHANGELOG.md b/CHANGELOG.md index e73f5a3..9b23365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index d54d0cd..ac2d77f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@wxml/parser", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9324b49..80c0987 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index c6ca013..4e44723 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,9 @@ function parseForESLint(code: string) { ast: buildAst(cst, tokenVector, lexErrors, parseErrors, true), services: {}, scopeManager: null, - visitorKeys: null, + visitorKeys: { + Program: ["errors", "body"], + }, }; }