Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

grunt-jsvalidate tries to read folder.js as a file #9

Open
sonnyp opened this issue Jan 3, 2014 · 3 comments
Open

grunt-jsvalidate tries to read folder.js as a file #9

sonnyp opened this issue Jan 3, 2014 · 3 comments

Comments

@sonnyp
Copy link

sonnyp commented Jan 3, 2014

Warning: Unable to read "foo/bar/folder.js" file (Error code: EISDIR). Use --force to continue.

@michael-benin-CN
Copy link

Can we see your configuration?

@sonnyp
Copy link
Author

sonnyp commented Jan 27, 2014

    jsvalidate: {
      options:{
        globals: {},
        esprimaOptions: {},
        verbose: true
      },
      targetName:{
        files:{
          src:[
            '*.js',
          ]
        }
      }
    },

PhoneNumber.js is a folder, '*.js' match it, grunt-jsvalidate try to read it as a file.

Here is stdout:

➜  repo git:(master) ✗ grunt jsvalidate
Running "jsvalidate:all" (jsvalidate) task
Validating Gruntfile.js  OK
Warning: Unable to read "PhoneNumber.js" file (Error code: EISDIR). Use --force to continue.

Aborted due to warnings.
➜  repo git:(master) ✗

@michaelBenin
Copy link
Contributor

Why do you need to name your folder with a file extension?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants