Using src from the parent folder of gulpfile.js will not be linted
See original GitHub issueFor a Meteor project we have to keep the gulpfile.js
and node_modules
in a folder that is not visible to meteor otherwise it will compile them. This means putting gulpfile.js
into a dot subfolder like .gulp
which is what https://github.com/bbmoz/meteor-gulp/ does. The gulpfile it generates looks something like this.
https://github.com/bbmoz/meteor-gulp/blob/master/plugin/gulpfile.temp
Their example uses jshint and jscs but I’d rather use eslint because it’s a bit easier to configure for Angular and ES6. However when the ./../** ...
globs get passed to eslint it does not get processed. I have verified that the files will match the glob if I use gulp-print
to print out the file list. My current workaround is to reorganize the project such that gulpfile is in the parent folder and my meteor is in a sub folder.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Try adding
warnFileIgnored:true
to your gulp-eslint config. If you receive a bunch of ignore warnings let me know and I’ll dig into why the linter might give mixed messages (gulp-eslint uses eslint’sisPathIgnored
to avoid linting .eslintignore’d files).package.json
:gulpfile.js
:script.js
:This issue seems to be fixed in the latest version.