Skip to content

feat: add support for typescript AST to getStaticValue, and ReferenceTracker #255

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

Merged
merged 4 commits into from
May 2, 2025

Conversation

ota-meshi
Copy link
Member

close #250

This PR adds support for typescript AST to getStaticValue(), and ReferenceTracker class.

Note that TypeScript type definitions still do not accept TSESTree node types.
If I change the type to accept TSESTree, it no longer accepts ESLint's node types. I'm still not sure what to do about this.

@ota-meshi ota-meshi requested a review from a team May 1, 2025 03:35
package.json Outdated
@@ -46,6 +46,7 @@
"lint:knip": "knip",
"lint": "run-p lint:*",
"test": "c8 mocha --reporter dot \"test/*.mjs\"",
"debug": "mocha --reporter dot \"test/*.mjs\"",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about test and test-coverage instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! I changed the script names.

@aladdin-add aladdin-add merged commit c802ca0 into main May 2, 2025
17 checks passed
@aladdin-add aladdin-add deleted the ts-ast-support branch May 2, 2025 06:10
Copy link

github-actions bot commented May 2, 2025

🎉 This PR is included in version 4.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for TypeScript syntax
3 participants