Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for locally installed eslint #65

Open
wnr opened this issue Jul 3, 2017 · 2 comments
Open

Support for locally installed eslint #65

wnr opened this issue Jul 3, 2017 · 2 comments

Comments

@wnr
Copy link

wnr commented Jul 3, 2017

Hi,

I have multiple projects that have eslint installed locally through npm. I can't figure out how to configure this plugin to handle that. Is it possible to have a non-global configuration? Similar plugins for other editors such as Atom scans the project node_modules directory.

Thanks

@idok
Copy link
Owner

idok commented Jul 13, 2017

You can set the path to local copy or global, as described in the readme:

Set the path to the eslint bin file. should point to node_modules/eslint/bin/eslint.js if you installed locally or /usr/local/bin/eslint if you installed globally.
For Windows: install eslint globally and point to the eslint cmd file like, e.g. C:\Users<username>\AppData\Roaming\npm\eslint.cmd

@kashiif
Copy link

kashiif commented Aug 8, 2017

In my experience, the local .eslintrc.js is not respected. I have specified the full path of the file in Configuration File textbox in WebStrorm's preferences dialog (rather than default Automatic Search. My .eslintrc.js file has a rule

// Allow ++ or -- operatorsin for loops
'no-plusplus': ["error", { "allowForLoopAfterthoughts": true }],

But I am still getting the ESLint errors for this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants