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

options.globals get overridden inside gulp-jshint #95

Open
nadavsr opened this issue Feb 1, 2015 · 11 comments
Open

options.globals get overridden inside gulp-jshint #95

nadavsr opened this issue Feb 1, 2015 · 11 comments
Assignees

Comments

@nadavsr
Copy link

nadavsr commented Feb 1, 2015

Looks like bug #21 is back after rcloader has been upgraded from 0.1.2 to 0.1.4.

I can confirm that v1.9.1 of gulp-jshint works fine with rcloader v0.1.2.

It looks like the cloning of the configuration that fixed bug #21 has been removed in a subsequent commit - could this be returned?

@xavimb
Copy link

xavimb commented Feb 2, 2015

+1 to this problem

@doberkofler
Copy link

+1 (all my build are no longer working after updating)

@shellscape
Copy link

👍 same problem here.

This line is the culprit https://github.com/spenceralger/gulp-jshint/blob/master/src/lint.js#L41

@spenceralger not indenting to be rude or rush, but is there an ETA on a fix? we're going to manually downgrade for the time being. just curious on when to check back on it.

@maccurt
Copy link

maccurt commented Feb 2, 2015

All my build broke too, I am going to go back to 1.9.0 for the time being, it seems as if it does not recognize my global suppression config anymore

@doberkofler
Copy link

moving back to 1.9.0 did not work for either.

@maccurt
Copy link

maccurt commented Feb 2, 2015

Yipe you are right moving back to 1.9.0 did not work for me, it has something perhaps to do with the upgrade of rcloader, my build was working with 0.1.2 . gulp-jshint has a dependecy on lodash, minimatch, and some others.. but right now perhaps it is rcloader 0.1.4

@spalger
Copy link
Owner

spalger commented Feb 2, 2015

Working on it, fix inbound

@maccurt
Copy link

maccurt commented Feb 2, 2015

Thanks for working on it, disregard my email I sent you please..

@spalger
Copy link
Owner

spalger commented Feb 2, 2015

Well, not sure exactly what happened but I have published 1.9.2 locked to rcloader 0.1.2.

rcloader 0.1.4 seems to mutate the config somehow but I don't have the bandwidth to track down the issue right now. Can someone confirm this fixes the issue for now?

Tests are passing and more need to be written to prevent this issue from coming back down the road. Can someone submit code that fails in 1.9.1 but passes in 1.9.2?

Thanks for your patience 😃

@maccurt
Copy link

maccurt commented Feb 2, 2015

Thanks for doing that so quick. That fixed my issue

@doberkofler
Copy link

1.9.2 fixed my issues.

The following example failed in 1.9.1 and works again in 1.9.2.:

/*jshint node:true*/
console.log(_.isObject({}));
{
    "globals": {
        "_": false
    }
}

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

6 participants