Skip to content

Conversation

@brettz9
Copy link
Contributor

@brettz9 brettz9 commented Oct 27, 2025

Prerequisites checklist

What is the purpose of this pull request?

Provide TypeScript support for espree.

What changes did you make? (Give an overview)

  • applied checkJs/allowJs TypeScript to espree.
  • complete test coverage
  • in lib/espree.js, removes an uncovered and apparently unnecessary branch (previously lines 152-154) where a property was being added to an array.

Related Issues

A renewed approach to #544 which doesn't require a special, fragile build routine or non-standard JSDoc tags.

Is there anything you'd like reviewers to focus on?

The @typedef exports that were of previous concern should not be here since the main file does not use them except for public type exports. Otherwise, we are using @import.

Has some added complexity in redefining Acorn/acorn-jsx because Acorn's TypeScript does not concern all properties of relevance to plugin authors. See acornjs/acorn#1404 .

Currently applies acorn-jsx from my own fork as waiting on acornjs/acorn-jsx#139 .

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Oct 27, 2025
@brettz9 brettz9 force-pushed the types branch 6 times, most recently from 241fd44 to 72bc186 Compare October 28, 2025 12:20
Also:
- test: complete coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant