Skip to content

How to traverse? #155

@zdm

Description

@zdm

Is it possible to use this module standlone, without eslint?
I need to extract javascript function invocation from vue template (dynamic attributes and templates).

import { parse } from "vue-eslint-parser";

const ast = parse( t, {
    "sourceType": "module",
    }
}

It creates AST but how to traverse it? estraverse and @babel/traverse not works, they stops on Program node and doesn't go further.

Could you give some examples, please. Documentations is very limited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions