gyandeeps / gruntify-eslint

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

Problems when using dynamic file names #13

Closed geneswitch closed 9 years ago

geneswitch commented 9 years ago

I am using gruntify-eslint with git-modified-files to lint only files changed since the last commit the two configs are here:

        git_modified_files : {
            options: {
                diffFiltered: 'AMC',
                regexp: /\.js$/
            }
        },
        eslint: {
            modified: {
                src: ["<%= gmf.all %>"]
            },
            app: {
                src: ["client/**/*.js"]
            }
        }

When I call other tasks which aren't even calling eslint I get this error:

Warning: An error occurred while processing a template (Cannot read property 'all' of undefined). Use --force to continue.
Aborted due to warnings.
gyandeeps commented 9 years ago

I dont think I understand completely whats going on and also why do you think this errors is coming from eslint?

gyandeeps commented 9 years ago

closing due o no response. Feel free to reopen.