Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typescript-estree): parseWithNodeMaps returning empty maps #2773

merged 1 commit into from Nov 17, 2020


Copy link

@bradzacher bradzacher commented Nov 17, 2020

No description provided.

@bradzacher bradzacher added the bug label Nov 17, 2020
Copy link

@typescript-eslint typescript-eslint bot commented Nov 17, 2020

Thanks for the PR, @bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!

🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@bradzacher bradzacher merged commit 3e4a0ed into master Nov 17, 2020
10 checks passed
10 checks passed
Typecheck Typecheck
Unit tests Unit tests
Code style and lint Code style and lint
Run integration tests on primary Node.js version Run integration tests on primary Node.js version
Run unit tests on other Node.js versions (10.x) Run unit tests on other Node.js versions (10.x)
Run unit tests on other Node.js versions (14.x) Run unit tests on other Node.js versions (14.x)
Publish the latest code as a canary version
Semantic Pull Request ready to be squashed
codecov/patch Coverage not affected when comparing 3333040...8fbd626
codecov/project 92.80% (+0.00%) compared to 3333040
@bradzacher bradzacher deleted the fix-parseWithNodeMaps branch Nov 17, 2020
const tsNode = result.esTreeNodeToTSNodeMap.get(result.ast.body[0]);

This comment has been minimized.


fisker Nov 17, 2020

Why not


Isn't it more safer?

This comment has been minimized.


bradzacher Nov 17, 2020
Author Member

Technically yes - but there are other tests which test the maps (sort of). So it's "good enough" to assert that there's something there.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants