vuejs / vue-eslint-parser

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

Program:exit called before Vue nodes #164

Closed iliubinskii closed 2 years ago

iliubinskii commented 2 years ago

It looks like a common pattern to collect info from multiple nodes and do final check in "Program:exit". However, this pattern breaks for Vue nodes (e.g. VElement), because Vue nodes are called after "Program:exit". I think this is not right because Program is the topmost node: image

Using "VElement[name=template]:exit" does not solve the problem because