damian / jshint

Making it easy to lint your JavaScript assets in any Rails 3.1+ and Rails 4 application.

Home Page:https://rubygems.org/gems/jshint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding additional files doesn't work

nevesenin opened this issue · comments

Hi,

I tried to add spec/javascripts/**/*.js to files configuration, but it didn't work as expected. I wrote as test, to show what went wrong:
nevesenin@5b287b3
I did not write a fix for that because I think there is more than one way to fix it. For my part, I would prefer a file name pattern configuration with *.js as default and a search paths configuration.
As a workaround I added ../../../spec/javascripts/*.js to files configuration. The files are linted three times now, but this is better then never.

I've just released v1.4.0 containing a fix for this - thanks for bringing this to my attention.

Can you confirm that this resolves your issue?

Yes, it works. Thank you!! 👍

Happy days. No problem 👍🏻