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

How can I use this on my project, not on my shareable config? #69

Closed
domenic opened this issue May 1, 2016 · 2 comments
Closed

How can I use this on my project, not on my shareable config? #69

domenic opened this issue May 1, 2016 · 2 comments

Comments

@domenic
Copy link

domenic commented May 1, 2016

My project has a non-shareable config. I was hoping for a workflow where I install this globally and do

$ eslint-find-rules .eslintrc.json

and it shows me which rules I haven't configured. However, this failed in two ways:

  • First, it wouldn't work until I also globally installed eslint. That's sad.
  • Second, even after I did that, it always output nothing. I tried deleting random rules from my config, and nothing happened.
@sarbbottam
Copy link
Owner

$ eslint-find-rules .eslintrc.json

You have to specify an option. For example, if you want to list the unused rules, use the -u option.

$ eslint-find-rules -u .eslintrc.json

Please refer the usage section for details.

  • First, it wouldn't work until I also globally installed eslint. That's sad.

I wonder how come it did not throw any error, it excepts eslint to be installed locally

  • Second, even after I did that, it always output nothing. I tried deleting random rules from my config, and nothing happened.

Could you try, installing eslint locally and specifying an option; eslint-find-rules -u .eslintrc.json?

@domenic
Copy link
Author

domenic commented May 1, 2016

I already have eslint installed locally; it threw an error until I also installed it globally.

It looks like specifying an option is what I needed; thank you! I skimmed the readme and found "By default it will error out only for -u|--unused" which I misread as "by default it will specify -u|--unused"

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

2 participants