grunt-jsvalidate icon indicating copy to clipboard operation
grunt-jsvalidate copied to clipboard

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

Open sonnyp opened this issue 11 years ago • 3 comments

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

sonnyp avatar Jan 03 '14 13:01 sonnyp

Can we see your configuration?

michael-benin-CN avatar Jan 03 '14 17:01 michael-benin-CN

    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) ✗

sonnyp avatar Jan 27 '14 15:01 sonnyp

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

michaelBenin avatar Feb 04 '15 15:02 michaelBenin