Closed petershaw closed 7 years ago
Hi, i try to lint a directory.
my config is:
eslint: { target: { src: ['simplestore.js', 'lib/*.js'] }, options: { outputFile: 'checkstyle.xml', format: 'checkstyle' } }
lib has file1.js, file2.js and file3.js.
grunt returns an error, as soon as i have a * in the list. If I list all three files it works, with a wildcard it doesn't.
Running "eslint:target" (eslint) task [D] Task source: /Projects/dobo-Modules/dobo-simplestore/node_modules/grunt-contrib-eslint/tasks/eslint.js Verifying property eslint.target exists in config...OK Files: main.js, lib/file1.js, lib/file2.js, lib/file3.js Options: silent=false, outputFile="checkstyle.xml", format="checkstyle" Warning: Cannot read property 'execute' of undefined Use --force to continue.
You need to expand the pattern: http://stackoverflow.com/questions/15344584/grunt-0-4-less-task-how-to-not-concatenate-destination-files/15371443#15371443
Hi, i try to lint a directory.
my config is:
lib has file1.js, file2.js and file3.js.
grunt returns an error, as soon as i have a * in the list. If I list all three files it works, with a wildcard it doesn't.