Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enhancement: Support Hashbang parse in typescript-estree #6500

Open
@fisker

Description

@fisker

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

typescript-estree

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

I understand that ESLint core handles Hashbang automatically, but it's kind of missing feature when use typescript-estree alone.

Should we add support for it? It's in the spec after all.

Fail

N/A

Pass

N/A

Additional Info

> require('@typescript-eslint/typescript-estree').parse('#!/usr/bin/env node', {comment: true})
{ type: 'Program', body: [], sourceType: 'script', comments: [] } // <- missing comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked by external APIBlocked by a tool we depend on exposing an API, such as TypeScript's Type Relationship APIenhancementNew feature or requestpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions