-
Notifications
You must be signed in to change notification settings - Fork 141
Fallback to globally installed eslint if not installed in project #845
Comments
An option like the Use Global ESLint option that already exists? 😛 As a note, from what you are describing the project in question does have an ESLint configuration, so it should be installed in the project. |
@Arcanemagus, actually we don't 'fall-back'. The We have talked about making this change in the past, and agreed it would be worthwhile. But so far, nobody has done the work and submitted a PR. |
@gnestor I assume you have |
@IanVS Currently, when I am working in a project that DOES NOT have eslint set up, I enable My debug:
|
Yep, that's what I figured. I totally agree. Are you willing to take a crack at a PR? |
Ya! |
Not sure if I should comment here or start another issue, let me know if I should start another issue. I spent hours yesterday trying to get .eslintrc to be recognized globally. My primary question is, if the What Happened?I've installed What did I try?There's an option in Atom for
using both objective and relative paths for the last two. And of course Once I put my |
@JasonMFry Yours is a separate issue 😉. To answer your question though, that setting requires the full path to your "global" Note that ESLint itself already supports a fallback config. If you place a
|
@gnestor, just checking in, do you still think you'll be able to attempt a PR for this? No pressure, just asking. |
I've been thinking of opening this exact issue, except with one extra feature. I would like to see a fallback that includes a "Using global eslint settings" I'm willing to stab at a fix also. @gnestor if you've made any progress on this, please link to your working branch on github. Thx |
@skylize Thank you for stepping up! I've been so busy with work so I haven't had a chance to start this. Let me know I can assist 👍 |
Has there been any movement on implementing this feature? Its been several months since the last comment — now that I'm using CRA it's becoming a big annoyance for me. |
This is still open to anyone who has the time and willingness to implement. Would you like to take a crack at it, @bcnichols3? |
Hold my beer. |
quick question: in
|
The last two blocks (with Since I'm not a huge fan of negative So, I envision what you'll have to do is:
else:
but if it fails:
Does that make any sense? |
Definitely. My original thinking is to make it so Currently I have:
But I can change that to reflect the thinking above. I also altered worker helper tests accordingly, but two
|
Do you mind opening a PR with what you have so far? It's easier to talk alongside the code I think. Thanks! |
any thoughts @IanVS ? |
Issue Type
Feature Request
Issue Description
I have a global eslint setup with
~/.eslintrc
and globally installed eslint, babel-eslint, etc. This is great because I can now lint all JS projects, not just those that have eslint installed and/or configured. However, if I am working on a project that does have its own eslint setup, then I start running into errors like "eslint-plugin-flowtype not found" because it's required by the project's eslint config but not installed globally.I propose that this package offer a global eslint installation fallback option so that project installations take precedence.
Thoughts?
The text was updated successfully, but these errors were encountered: