Skip to content

Question: What parser is required when running typescript rules? #134

@stephen-carter-at-sf

Description

@stephen-carter-at-sf

I see the readme says:

Usage with TypeScript
To enable working with TypeScript projects, install @babel/preset-typescript as a dependency, then add "typescript" to parserOptions.babelOptions.parserOpts.plugins in your .eslintrc.

but it shows an example that uses babelOptions which makes me think that the @babel/eslint-parser parser is required instead of the @typescript-eslint/parser. In order to also run the plugin:@typescript-eslint/recommended rules... I believe I need the @typescript-eslint/parser parser. But if I use @typescript-eslint/parser then how can I update the babelOptions with the "typescript" plugin?

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