jshint.conf.js
1.13 KB
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
51
52
53
54
55
56
57
module.exports = {
options: {
browser: true,
globals: {
// `false` means read-only
define: false,
exports: false,
module: false,
require: false,
moment: false,
jQuery: false
},
es3: true,
bitwise: true,
curly: true,
forin: true,
freeze: true,
immed: true,
noarg: true,
smarttabs: true,
trailing: true,
eqnull: true,
'-W032': true, // Unnecessary semicolon. (lumbar's ;;)
'-W008': true // A leading decimal point can be confused with a dot (ex: .5) // TODO: think about enabling!
},
srcModules: [
'src/**/*.js',
'!**/intro.js', // exclude
'!**/outro.js' //
],
builtModules: {
options: {
// Built modules are ready to be checked for...
undef: true, // use of undeclared globals
unused: 'vars', // functions/variables (excluding function arguments) that are never used
latedef: 'nofunc' // variables that are referenced before their `var` statement
},
src: [
'dist/*.js',
'!**/*.min.js', // exclude
'!**/lang-all.js' //
]
},
srcLanguages: 'lang/*.js',
tests: 'tests/automated/*.js',
misc: [
'*.js', // ex: Gruntfile.js
'build/*.js' // ex: this file
]
};