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

Nothing happens, don't know how to use. #2

Closed
Chris2011 opened this issue Feb 3, 2016 · 12 comments
Closed

Nothing happens, don't know how to use. #2

Chris2011 opened this issue Feb 3, 2016 · 12 comments

Comments

@Chris2011
Copy link
Collaborator

I installed the package via npm -g install eslint. I added the .cmd file and a config but nothing happens. I don't know how to use it :/. Can you give an example please?

@Chris2011 Chris2011 changed the title Nothing happens Nothing happens, don't know how to use. Feb 3, 2016
@joakim-eriksson
Copy link
Owner

Are you using windows?

Could you try to run it from the command line like

/usr/bin/eslint --config /some/path/.eslintrc --format compact .

in a project that have some errors and give me the output.

@joakim-eriksson
Copy link
Owner

Will try to test more on windows. are you using the full path like C:\Users\xxx\AppData\Roaming\eslint

use double back slashes

@Chris2011
Copy link
Collaborator Author

Have to test it later. Will give you feedback soon.

joakim-eriksson [email protected] schrieb:

Will try to test more on windows. are you using the full path like C:\Users\xxx\AppData\Roaming\eslint


Reply to this email directly or view it on GitHub.

@dumith-eranga
Copy link

Hi @joakim-eriksson
I have the same issue in Windows.
I configured the ESLint path to "{full_path}\eslint.js" under Tools > Options > Miscellaneous > ESLint and pointed the Conf path to a valid ".eslintrc" file. But I do not see any changes to editor when I have invalid JS code as per the config file rules.

@Chris2011
Copy link
Collaborator Author

Had no time yet, sry. Will help you to give you the info, what you need @joakim-eriksson

@joakim-eriksson
Copy link
Owner

You need to use the cmd file. On my friends computer it looks like this.
C:\Users${userName}\AppData\Roaming\npm\eslint.cmd

So please try to run it from the command line first.

@Chris2011
Copy link
Collaborator Author

This is the property: C:\Users\chrl\AppData\Roaming\npm\eslint.cmd So everything is fine. Yes I will try from the command line. Will give you feedback later.

@dumith-eranga
Copy link

@joakim-eriksson
It's working fine now that I set the path to the cmd file.
Thank you for this really useful plug-in.

@joakim-eriksson
Copy link
Owner

Great news! Please let me know if you are missing any functionality or want to change any behavior.

@Chris2011
Copy link
Collaborator Author

I created a comment there: walmartlabs/eslint-config-defaults#43

there you can read what happend, when I call:

C:\Users\chrl\AppData\Roaming\npm\eslint.cmd --config .eslintrc.json --format compact .

from the command line.

@Chris2011
Copy link
Collaborator Author

Ok I fixed that, the problem was this inside my .eslintrc.json file:

{
   "extends": "google"
}

thx. After changing a file and saving this file, eslint will execute. Will be good, I think as it is. For other things, I will create other tickets.

@joakim-eriksson
Copy link
Owner

Ok thanks I will try to make the problem easier to debug.

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