forked from smogon/pokemon-showdown
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
50 lines (44 loc) · 1.09 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var gulp = require('gulp'),
jshintStylish = require('jshint-stylish'),
gutil = require('gulp-util'),// Currently unused, but gulp strongly suggested I install...
jshint = require('gulp-jshint'),
jsHintOptions = {
"trailing": true,
"nonbsp": true,
"noarg": true,
"latedef": true,
"sub": true,
"smarttabs": true,
"evil": true,
"esnext": true,
"node": true,
"eqeqeq": false,
"globals": {
"Config": false,
"ResourceMonitor": false,
"toId": false,
"toName": false,
"sanitize": false,
"string": false,
"LoginServer": false,
"Users": false,
"Rooms": false,
"Verifier": false,
"CommandParser": false,
"Simulator": false,
"Tournaments": false,
"Dnsbl": false,
"Cidr": false,
"Sockets": false,
"Tools": false,
"TeamValidator": false
}
};
gulp.task('lint', function () {
var directories = ['./*.js', './data/*.js', './mods/*.js', './config/*.js'];
console.log("\n\n*** Linting JavaScript Files ***\n\n");
gulp.src(directories)
.pipe(jshint(jsHintOptions))
.pipe(jshint.reporter(jshintStylish));
});
gulp.task('default', ['lint']);