diff --git a/generators/app/templates/.eslintignore b/generators/app/templates/.eslintignore new file mode 100644 index 00000000..022b9885 --- /dev/null +++ b/generators/app/templates/.eslintignore @@ -0,0 +1,2 @@ +node_modules +vendor diff --git a/generators/app/templates/.stylelintignore b/generators/app/templates/.stylelintignore new file mode 100644 index 00000000..22d0d82f --- /dev/null +++ b/generators/app/templates/.stylelintignore @@ -0,0 +1 @@ +vendor diff --git a/generators/app/templates/gulp/tasks/lint.js b/generators/app/templates/gulp/tasks/lint.js index d505bdc3..d8dbc33c 100644 --- a/generators/app/templates/gulp/tasks/lint.js +++ b/generators/app/templates/gulp/tasks/lint.js @@ -4,14 +4,14 @@ var path = require('path'); var lintTask = function (gulp, plugins, config) { gulp.task('lint-js', function() { - return gulp.src([path.join(config.src.base, config.src.scripts), '!node_modules/**', '!src/scripts/vendor/**']) + return gulp.src(path.join(config.src.base, config.src.scripts)) .pipe(plugins.eslint()) .pipe(plugins.eslint.format()) .pipe(plugins.eslint.failAfterError()); }); gulp.task('lint-css', function() { - return gulp.src([path.join(config.src.base, config.src.styles), '!src/styles/vendor/**']) + return gulp.src(path.join(config.src.base, config.src.styles)) .pipe(plugins.stylelint({ reporters: [ {formatter: 'string', console: true}