Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Goto Definition Issue with eslint-plugin-perfectionist #939

Open
@rgant

Description

@rgant

I am unable to "Goto Type Definition..." or "Goto Definition..." on eslint-plugin-perfectionist. It works for @eslint/js, globals, and typescript-eslint in eslint.config.mjs.

Minimal reproduction repo: https://github.com/rgant/tmp-eslint-perfectionist-test

I originally found this issue in a new Angular project and opened this ticket with the plugin developers. They have been very helpful in looking into this issue, but believe it is outside of their code. I created the above brand new repo to try and replicate the bug. But I was not able to get the same error message. However the code discovery actions are not working so it feel like there is something here to diagnose. But I am uncertain how to proceed.

When I reported this issue to LSP-typescript I was told:

Hello, Looks like the https://github.com/typescript-language-server/typescript-language-server returns a empty response, but only when doing a goto definition on this line:

import perfectionist from "eslint-plugin-perfectionist";
                                              ^ goto def here

https://github.com/rgant/tmp-eslint-perfectionist-test/blob/6b8b429ebe1eb5045e93eca632a16cb652d59914/eslint.config.mjs#L2

I have tested VS Code, and goto definition works there. I also tested a different language server vtsls and goto definition works there also.

The issue should ideally be reported to https://github.com/typescript-language-server/typescript-language-server/issues

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