Merge pull request #1618 from alphagov/add-jshintrc

Move jshint configuration to .jshintrc
This commit is contained in:
Alexey Bezhan
2017-11-06 17:46:34 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

1
.jshintrc Normal file
View File

@@ -0,0 +1 @@
{"esversion": 6, "esnext": false}

View File

@@ -138,7 +138,7 @@ gulp.task('lint:sass', () => gulp
gulp.task('lint:js', () => gulp
.src(paths.src + 'javascripts/**/*.js')
.pipe(plugins.jshint({'esversion': 6, 'esnext': false}))
.pipe(plugins.jshint())
.pipe(plugins.jshint.reporter(stylish))
.pipe(plugins.jshint.reporter('fail'))
);