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

prevent-abbreviation rule currently not working with @typescript-eslint/parser #265

Closed
SpainTrain opened this issue Mar 27, 2019 · 2 comments

Comments

@SpainTrain
Copy link

This is more for awareness/tracking since I believe it is a bug in @typescript-eslint/parser@1.5.0 (see typescript-eslint/typescript-eslint#381) and not in this plugin itself.

When run against a ts file with an enum, this function

const isDefaultOrNamespaceImportName = identifier => {
throws an undefined Error because the enum identifier node does not have .parent.

@dashmug
Copy link

dashmug commented Mar 27, 2019

I've just run into this as well. My temporary workaround is to disable this rule.

@sindresorhus
Copy link
Owner

This will be fixed there very soon: typescript-eslint/typescript-eslint#383

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

No branches or pull requests

3 participants