Skip to content

Plugin fails when specifying a different eslint config #1276

Closed
@flapjackfritz

Description

@flapjackfritz

When I have multiple eslint configs for multiple folders (mono repo situation), the plugin seems to fail because it thinks that there are multiple installs of the same package. While technically this is true, it shouldn't matter because the different folders have different npm modules installed, which is desirable.

So I have:
.eslintrc.js
.dev.eslintrc.js

The .dev.eslintrc.js file is a configuration I use in my IDE to have a much stricter set of rules than I use when I push code to the repo. I want a different set of rules warnings/errors than I want to stop me from pushing code.

I get the error:
[Info - 5:20:51 pm] Plugin "react" was conflicted between "--config" and ".eslintrc.js".

I think this is incorrect because I am not even wanting to use a .eslintrc.js file in my VS code plugin at all - so why is it trying to use one?

I have created an example repo to show this error in the simplest way I can. This appears to only happen in windows, but function normally in OSX.

https://github.com/flapjackfritz/vscode-eslint-example-fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions