gyandeeps / gruntify-eslint

Grunt plugin for Eslint
MIT License
14 stars 8 forks source link

Dynamic altering `src` does not affected linted files #6

Closed dmtrs closed 9 years ago

dmtrs commented 9 years ago

I am using gruntify-eslint along with grunt-contrib-watch and I have the following snippet in my Gruntfile.js:

    grunt.event.on('watch', function(action, filepath) {
        grunt.config('eslint.src', filepath);
    });

In order to lint only files altered and not all the project. Unfortunately it does not seem to work for gruntify-eslint

gyandeeps commented 9 years ago

Can you please share your gruntfile specially the part where you have your eslint configured. How to does watch calls it again. I have never used grunt watch that why I want more info. Thanks

dmtrs commented 9 years ago

Was wrong configuration from my side. For future use grunt-contrib-watch spawn flag should be false