-
Notifications
You must be signed in to change notification settings - Fork 15
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
no-undef Promise #51
Comments
Hi @dermike |
@zaggino No, that's definitely a better solution! ..but my question is kind of still the same, why it works without it with CLI eslint and not brackets-eslint. 🤔 |
No error with gulp-eslint either, only brackets-eslint |
If you can create a sample project I can clone and replicate the issue I'm happy to take a look. Otherwise I won't be guessing. I use this daily for a large number of projects without issue, although I must admit, all of them have |
What's your OS, Mac or Linux? I'm primary a Windows user, not sure if the node domain of Brackets doesn't run under a different user so it can't find the |
I'm on Mac OS. I've created this repo which also includes my Still getting the no-undef error with brackets-eslint even if it's in the project dir. |
No, I only have it installed globally... installed latest version in the issue repo now and still the same error. Must be something Mac specific then I guess. |
Have you tried re-installing |
Remove and reinstalled and same error... did not ask me to install locally. |
What version of Brackets are you on? 1.7 or 1.8? I'll check the code why that's the case. |
1.8
12 dec. 2016 kl. 21:36 skrev Martin Zagora <notifications@github.com<mailto:notifications@github.com>>:
What version of Brackets are you on? 1.7 or 1.8? I'll check the code why that's the case.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#51 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEXq9tZsEuw9Ds5kxU0_8Y69qQbkzsRvks5rHbA_gaJpZM4LKQ_r>.
|
Try updating to |
Tried with 3.0.3 and it works if I open the project directory in Brackets. Both the undef and ask to install eslint in the project. So this probably worked yesterday too, only had the file from the project open, not the project itself. So try reproducing it if you have another project open (without a local .eslintrc), and just open Still getting the error though if I don't have a project local Wish there was a way it worked with my home directory |
Hello!
Thanks for this great plugin!
I have a, for me at least, weird problem with it. In Brackets with brackets-eslint I get this error:
ERROR: 'Promise' is not defined. [no-undef] return new Promise((resolve, reject) => {
I don't get the error however when checking it with eslint manually. As far as I can tell I'm using eslint 3.12.0 both globally and in brackets-eslint. My
.eslintrc
is in my~/
directory.I can get around the error by adding
/* global Promise: true */
, but wish I didn't have to since it works without it in "normal" eslint. Hope this can be fixed or if anyone can spot something I've setup wrong.cheers!
The text was updated successfully, but these errors were encountered: