woldner / VisualLinter

Visual Studio Linter using ESLint.
MIT License
25 stars 3 forks source link

Feature Request - Prefer a local installation of ESLint over global #6

Closed sgordon3 closed 7 years ago

sgordon3 commented 7 years ago

Installed product versions

Description

VisualLinter will find a local eslintrc file and use it for configuration but it still requires that ESLint and all of it's plugins are installed globally. If you want to use different versions of plugins for different project along with VisualLinter, you can't with this version. Is there a possible roadmap for making it possible to use a locally installed ESLint?

Current behavior

fatal error due to eslint not being found if not installed globally. Installing globally causes errors for not found eslint plugins

Expected behavior (Hoped for behavior)

VisualLinter is able to make use of a locally installed eslint (node_modules directory)

jpreese commented 7 years ago

Completely agree. I've opened a PR to get this implemented.

woldner commented 7 years ago

I've had this idea for a while, just never got around to implement it. I'm looking at @jpreese pull request #7 and I'm thinking we'll have this available later today!

jpreese commented 7 years ago

That would be awesome, @jwldnr ! We're actively looking into eslint extensions for VS2017, since the default capabilities just don't seem to be there (eslintrc in user profile, no highlighting within the IDE).

This gets us everything we need with the exception of this piece.

woldner commented 7 years ago

implemented in #7