vuejs / vue-eslint-parser

The ESLint custom parser for `.vue` files.
MIT License
435 stars 74 forks source link

fix: ast difference between babel parser and typescript-eslint parser causes parse error #236

Closed UnrefinedBrain closed 2 weeks ago

UnrefinedBrain commented 2 weeks ago

babel 7 parses TSTypeParameter's name as a string, which causes errors when using babel parser with the generic attribute

ota-meshi commented 2 weeks ago

I think it's a bug in babel/eslint-parser. Can you ask the babel team to fix it?

UnrefinedBrain commented 2 weeks ago

They will change it in babel v8: https://github.com/babel/babel/pull/12829

but v8 has been planned for years now with no release other than some alphas

ota-meshi commented 2 weeks ago

I think that's also an issue with babel, and I don't want to make the code harder to work around it.

UnrefinedBrain commented 2 weeks ago

Ok. I'll just use a local patch for vue-eslint-parser until babel 8 releases then