@@ -17,9 +17,11 @@ module.exports = function(grunt) {
17
17
'src/js/tooltips.js' ,
18
18
'src/js/aria.js' ,
19
19
'src/js/pips.js' ,
20
- 'src/js/scope_helpers.js' ,
21
20
'src/js/scope_events.js' ,
22
- 'src/js/scope.js' ,
21
+ 'src/js/scope_event_binding.js' ,
22
+ 'src/js/scope_core.js' ,
23
+ 'src/js/scope_api.js' ,
24
+ 'src/js/scope_run.js' ,
23
25
'src/js/scope_end.js' ,
24
26
'src/js/interface.js' ,
25
27
'src/js/outro.js'
@@ -78,10 +80,35 @@ module.exports = function(grunt) {
78
80
latedef : true ,
79
81
undef : true ,
80
82
unused : true ,
83
+ shadow : "outer" ,
84
+ eqeqeq : true ,
85
+ forin : true ,
86
+ freeze : true ,
81
87
globals : { module : true , define : true , __dirname : true , require : true }
82
88
} ,
83
89
basic : [ 'distribute/nouislider.js' ]
84
90
} ,
91
+ eslint : {
92
+ options : {
93
+ configFile : 'eslint.json'
94
+ } ,
95
+
96
+ // Only lint files containing solely function definitions
97
+ target : [
98
+ 'src/js/helpers.js' ,
99
+ 'src/js/constants.js' ,
100
+ 'src/js/range.js' ,
101
+ 'src/js/options.js' ,
102
+ 'src/js/structure.js' ,
103
+ 'src/js/tooltips.js' ,
104
+ 'src/js/aria.js' ,
105
+ 'src/js/pips.js' ,
106
+ 'src/js/scope_events.js' ,
107
+ 'src/js/scope_event_binding.js' ,
108
+ 'src/js/scope_core.js' ,
109
+ 'src/js/scope_api.js'
110
+ ]
111
+ } ,
85
112
uglify : {
86
113
all : {
87
114
options : {
@@ -131,6 +158,9 @@ module.exports = function(grunt) {
131
158
// https://github.com/gruntjs/grunt-contrib-qunit
132
159
grunt . loadNpmTasks ( 'grunt-contrib-qunit' ) ;
133
160
161
+ // https://www.npmjs.com/package/grunt-eslint
162
+ grunt . loadNpmTasks ( 'grunt-eslint' ) ;
163
+
134
164
grunt . registerTask ( 'default' , [ 'concat' , 'less' , 'jshint' ] ) ;
135
165
grunt . registerTask ( 'test' , [ 'concat' , 'less' , 'jshint' , 'qunit' ] ) ;
136
166
grunt . registerTask ( 'create' , [ 'concat' , 'less' , 'uglify' , 'cssmin' ] ) ;
0 commit comments