gyandeeps / gruntify-eslint

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

Ignoring folders #20

Closed techpines closed 8 years ago

techpines commented 8 years ago

Is there any way to ignore files?

I have something like this:

eslint: {
  src: ['src/**/*.js']
}

But I also have folder called vendor for third party libs that is in the same folder. Is there any way to ignore that folder?

gyandeeps commented 8 years ago

you can add .eslintignore file with all the ignores. http://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories

techpines commented 8 years ago

Thanks @gyandeeps , and I also found that this worked:

eslint: {
  src: ['src/**/*.js', '!src/**/vendor/*.js']
}

Which I think is a grunt default feature.