@@ -25,7 +25,7 @@ module.exports = function (grunt) {
2525 'use strict' ;
2626
2727 // load dependencies
28- require ( 'load-grunt-tasks' ) ( grunt , { pattern : [ 'grunt-contrib-*' , 'grunt-targethtml' , 'grunt-usemin' , 'grunt-cleanempty' ] } ) ;
28+ require ( 'load-grunt-tasks' ) ( grunt , { pattern : [ 'grunt-contrib-*' , 'grunt-targethtml' , 'grunt-usemin' , 'grunt-cleanempty' , 'grunt-eslint' ] } ) ;
2929 grunt . loadTasks ( 'tasks' ) ;
3030
3131 // Project configuration.
@@ -241,19 +241,19 @@ module.exports = function (grunt) {
241241 watch : {
242242 all : {
243243 files : [ '**/*' , '!**/node_modules/**' ] ,
244- tasks : [ 'jshint ' ]
244+ tasks : [ 'eslint ' ]
245245 } ,
246246 grunt : {
247247 files : [ '<%= meta.grunt %>' , 'tasks/**/*' ] ,
248- tasks : [ 'jshint :grunt' ]
248+ tasks : [ 'eslint :grunt' ]
249249 } ,
250250 src : {
251251 files : [ '<%= meta.src %>' , 'src/**/*' ] ,
252- tasks : [ 'jshint :src' ]
252+ tasks : [ 'eslint :src' ]
253253 } ,
254254 test : {
255255 files : [ '<%= meta.test %>' , 'test/**/*' ] ,
256- tasks : [ 'jshint :test' ]
256+ tasks : [ 'eslint :test' ]
257257 }
258258 } ,
259259 /* FIXME (jasonsanjose): how to handle extension tests */
@@ -299,13 +299,12 @@ module.exports = function (grunt) {
299299 'jasmine_node' : {
300300 projectRoot : 'src/extensibility/node/spec/'
301301 } ,
302- jshint : {
302+ eslint : {
303303 grunt : '<%= meta.grunt %>' ,
304304 src : '<%= meta.src %>' ,
305305 test : '<%= meta.test %>' ,
306- /* use strict options to mimic JSLINT until we migrate to JSHINT in Brackets */
307306 options : {
308- jshintrc : '.jshintrc '
307+ configFile : '.eslintrc '
309308 }
310309 } ,
311310 shell : {
@@ -320,16 +319,16 @@ module.exports = function (grunt) {
320319 grunt . registerTask ( 'install' , [ 'write-config' , 'less' ] ) ;
321320
322321 // task: test
323- grunt . registerTask ( 'test' , [ 'jshint ' , 'jasmine' , 'nls-check' ] ) ;
324- // grunt.registerTask('test', ['jshint ', 'jasmine', 'jasmine_node']);
322+ grunt . registerTask ( 'test' , [ 'eslint ' , 'jasmine' , 'nls-check' ] ) ;
323+ // grunt.registerTask('test', ['eslint ', 'jasmine', 'jasmine_node', 'nls-check ']);
325324
326325 // task: set-release
327326 // Update version number in package.json and rewrite src/config.json
328327 grunt . registerTask ( 'set-release' , [ 'update-release-number' , 'write-config' ] ) ;
329328
330329 // task: build
331330 grunt . registerTask ( 'build' , [
332- 'jshint :src' ,
331+ 'eslint :src' ,
333332 'jasmine' ,
334333 'clean' ,
335334 'less' ,
0 commit comments