Skip to content

@typescript-eslint requires typescript #612

Open
@kunev

Description

020bf50 adds @typescript-eslint/eslint-plugin and @typescript-eslint/parser as dependencies. However they themselves require typescript. When running yarn in a project with latest eslint-plugin-github I get the following:

 yarn
➤ YN0000: ┌ Resolution step
➤ YN0002: │ eslint-plugin-github@npm:5.1.8 [02650] doesn't provide typescript (p71046), requested by @typescript-eslint/eslint-plugin
➤ YN0002: │ eslint-plugin-github@npm:5.1.8 [02650] doesn't provide typescript (pa3e1f), requested by @typescript-eslint/parser
➤ YN0002: │ eslint-plugin-github@npm:5.1.8 [02650] doesn't provide typescript (p8f4c7), requested by typescript-eslint

and running explain for p71046:

 yarn explain peer-requirements p71046
➤ YN0000: eslint-plugin-github@npm:5.1.8 [02650] doesn't provide typescript, breaking the following requirements:

➤ YN0000: @typescript-eslint/eslint-plugin@npm:8.24.0 [bc338]     → >=4.8.4 <5.8.0 ✘
➤ YN0000: @typescript-eslint/type-utils@npm:8.24.0 [1045e]        → >=4.8.4 <5.8.0 ✘
➤ YN0000: @typescript-eslint/typescript-estree@npm:8.24.0 [8c974] → >=4.8.4 <5.8.0 ✘
➤ YN0000: @typescript-eslint/utils@npm:8.24.0 [1045e]             → >=4.8.4 <5.8.0 ✘
➤ YN0000: ts-api-utils@npm:2.0.1 [1045e]                          → >=4.8.4        ✘

Technically everything still work as the project I'm working on itself has typescript as a dependency, but I think this warning is still relevant as it means the requirements defined in package.json here are not consistent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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