benjamn / benjamn/recast

Expose sourceType in parser option

Open
#920 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
363
Avg merge
3d 8h
Merged PRs (30d)
3

Description

[Options](https://github.com/benjamn/recast/blob/master/lib/options.ts#L7) should have a property `sourceType`. Otherwise there is no way of changing the default value [here](https://github.com/benjamn/recast/blob/master/lib/parser.ts#L33).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Options definition in lib/options.ts and the default sourceType handling in lib/parser.ts. Trace how parser options are passed through, then verify that sourceType can be supplied through Options and controls the parser setting described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.