Skip to content

Commit c0c988f

Browse files
committed
Merge pull request angular-fullstack#1589 from angular-fullstack/fix/jshint-exclude-constant
Fix/jshint exclude constant
2 parents 6c4e926 + 103db11 commit c0c988f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/templates/Gruntfile(grunt).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = function (grunt) {
161161
},
162162
src: ['<%%= yeoman.server %>/**/*.{spec,integration}.js']
163163
},
164-
all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js'],
164+
all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock|app.constant).js'],
165165
test: {
166166
src: ['<%%= yeoman.client %>/{app,components}/**/*.{spec,mock}.js']
167167
}

app/templates/gulpfile.babel(gulp).js

+5-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,11 @@ gulp.task('transpile:server', () => {
312312
gulp.task('lint:scripts', cb => runSequence(['lint:scripts:client', 'lint:scripts:server'], cb));
313313

314314
gulp.task('lint:scripts:client', () => {
315-
return gulp.src(_.union(paths.client.scripts, _.map(paths.client.test, blob => '!' + blob)))
315+
return gulp.src(_.union(
316+
paths.client.scripts,
317+
_.map(paths.client.test, blob => '!' + blob),
318+
[`!${clientPath}/app/app.constant.<%= scriptExt %>`]
319+
))
316320
.pipe(lintClientScripts());
317321
});
318322

0 commit comments

Comments
 (0)