Skip to content

@typescript-eslint/parser 更新到 6.5.0 以上版本后报错 Error while loading rule '@typescript-eslint/consistent-type-assertions' #251

@aidenchen8

Description

@aidenchen8

@typescript-eslint/parser 及 @typescript-eslint/eslint-plugin 更新到 6.5.0 及以上版本时,lint 校验报错。

Error: Error while loading rule '@typescript-eslint/consistent-type-assertions': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.

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