forked from OptimalBits/redbird
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
36 lines (33 loc) · 888 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*eslint-env node */
'use strict';
var gulp = require('gulp');
var eslint = require('gulp-eslint');
gulp.task('lint', function (){
// Note: To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failOnError last.
return gulp.src([
'./**/*.js',
'!./test/**',
'!./node_modules/**'
])
.pipe(eslint({
rules: {
'space-after-keywords': [2, 'never'],
indent: [2, 2],
'valid-jsdoc': 0,
'func-style': 0,
'no-use-before-define': 0,
camelcase: 1,
'no-unused-vars': 1,
'no-alert': 1,
'no-console': 1,
'no-unused-expressions': 0,
'consistent-return': 0
},
globals: {
'define': true
}
}))
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});