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

parse typescript? #407

Closed
benmosher opened this issue Jul 2, 2016 · 0 comments
Closed

parse typescript? #407

benmosher opened this issue Jul 2, 2016 · 0 comments

Comments

@benmosher
Copy link
Member

Would be cool if *.ts were magically parsed by a (the?) TypeScript parser, such that JavaScript files that import from TypeScript could be properly linted.

Use case: transitioning from one to the other in a Webpack project, where loaders allow both to exist.

Possible general config option: import/parsers that maps from regexes to parser modules. Non-matches would continue to use the ESLint parser.

Could theoretically lint CoffeeScript or whatever else, assuming some module spit out a roughly ESTree-compatible AST (i.e. it has compatible export nodes in a Program body).

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

No branches or pull requests

1 participant