mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Run jscs as part of gulp lint
This commit is contained in:
parent
861ecdfeb7
commit
14c0a60cbc
@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
var gulp = require('gulp');
|
||||
var jscs = require('gulp-jscs');
|
||||
var jshint = require('gulp-jshint');
|
||||
var jshintStylish = require('jshint-stylish');
|
||||
var sass = require('gulp-sass');
|
||||
@ -43,7 +44,9 @@ gulp.task('lint', function() {
|
||||
|
||||
return gulp.src(paths.scripts)
|
||||
.pipe(jshint())
|
||||
.pipe(jshint.reporter(jshintStylish));
|
||||
.pipe(jshint.reporter(jshintStylish))
|
||||
.pipe(jscs())
|
||||
.pipe(jscs.reporter());
|
||||
});
|
||||
|
||||
gulp.task('watch', [ 'lint', 'sass' ], function() {
|
||||
|
@ -39,6 +39,7 @@
|
||||
"electron-packager": "^5.1.1",
|
||||
"electron-prebuilt": "^0.36.4",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-jscs": "^3.0.2",
|
||||
"gulp-jshint": "^1.11.2",
|
||||
"gulp-sass": "^2.0.4",
|
||||
"jshint-stylish": "^2.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user