1- module . exports = function ( grunt ) {
2-
31"use strict" ;
42
3+ module . exports = function ( grunt ) {
4+
55var
66 glob = require ( "glob" ) ,
77
@@ -177,33 +177,14 @@ grunt.initConfig( {
177177 }
178178 } ,
179179
180- jscs : {
181- ui : {
182- options : {
183- config : true
184- } ,
185- files : {
186- src : [ "demos/**/*.js" , "build/**/*.js" , "ui/**/*.js" ]
187- }
188- } ,
189- tests : {
190- options : {
191- config : true ,
192- maximumLineLength : null
193- } ,
194- files : {
195- src : [ "tests/**/*.js" ]
196- }
197- }
198- } ,
199180 uglify : minify ,
200181 htmllint : {
201182 good : {
202183 options : {
203184 ignore : [
204185 / T h e t e x t c o n t e n t o f e l e m e n t “ s c r i p t ” w a s n o t i n t h e r e q u i r e d f o r m a t : E x p e c t e d s p a c e , t a b , n e w l i n e , o r s l a s h b u t f o u n d “ .” i n s t e a d /
205186 ] } ,
206- src : glob . sync ( "{demos,tests}/**/*.html" , {
187+ src : glob . sync ( "{demos,tests}/**/*.html" , {
207188 ignore : htmllintBad
208189 } )
209190 } ,
@@ -242,12 +223,10 @@ grunt.initConfig( {
242223 }
243224 }
244225 } ,
245- jshint : {
246- options : {
247- jshintrc : true
248- } ,
226+ eslint : {
249227 all : [
250- "ui/*.js" ,
228+ "ui/**/*.js" ,
229+ "!ui/vendor/**/*.js" ,
251230 "Gruntfile.js" ,
252231 "build/**/*.js" ,
253232 "tests/unit/**/*.js" ,
@@ -287,10 +266,12 @@ grunt.initConfig( {
287266 "qunit/qunit.css" : "qunit/qunit/qunit.css" ,
288267 "qunit/LICENSE.txt" : "qunit/LICENSE.txt" ,
289268
290- "qunit-assert-classes/qunit-assert-classes.js" : "qunit-assert-classes/qunit-assert-classes.js" ,
269+ "qunit-assert-classes/qunit-assert-classes.js" :
270+ "qunit-assert-classes/qunit-assert-classes.js" ,
291271 "qunit-assert-classes/LICENSE.txt" : "qunit-assert-classes/LICENSE" ,
292272
293- "qunit-assert-close/qunit-assert-close.js" : "qunit-assert-close/qunit-assert-close.js" ,
273+ "qunit-assert-close/qunit-assert-close.js" :
274+ "qunit-assert-close/qunit-assert-close.js" ,
294275 "qunit-assert-close/MIT-LICENSE.txt" : "qunit-assert-close/MIT-LICENSE.txt" ,
295276
296277 "qunit-composite/qunit-composite.js" : "qunit-composite/qunit-composite.js" ,
@@ -305,9 +286,6 @@ grunt.initConfig( {
305286 "jquery-simulate/jquery.simulate.js" : "jquery-simulate/jquery.simulate.js" ,
306287 "jquery-simulate/LICENSE.txt" : "jquery-simulate/LICENSE.txt" ,
307288
308- "jshint/jshint.js" : "jshint/dist/jshint.js" ,
309- "jshint/LICENSE" : "jshint/LICENSE" ,
310-
311289 "jquery/jquery.js" : "jquery-1.x/dist/jquery.js" ,
312290 "jquery/LICENSE.txt" : "jquery-1.x/LICENSE.txt" ,
313291
@@ -443,10 +421,12 @@ grunt.initConfig( {
443421 "jquery-3.6.0/jquery.js" : "jquery-3.6.0/dist/jquery.js" ,
444422 "jquery-3.6.0/LICENSE.txt" : "jquery-3.6.0/LICENSE.txt" ,
445423
446- "jquery-migrate-1.4.1/jquery-migrate.js" : "jquery-migrate-1.4.1/dist/jquery-migrate.js" ,
424+ "jquery-migrate-1.4.1/jquery-migrate.js" :
425+ "jquery-migrate-1.4.1/dist/jquery-migrate.js" ,
447426 "jquery-migrate-1.4.1/LICENSE.txt" : "jquery-migrate-1.4.1/LICENSE.txt" ,
448427
449- "jquery-migrate-3.3.2/jquery-migrate.js" : "jquery-migrate-3.3.2/dist/jquery-migrate.js" ,
428+ "jquery-migrate-3.3.2/jquery-migrate.js" :
429+ "jquery-migrate-3.3.2/dist/jquery-migrate.js" ,
450430 "jquery-migrate-3.3.2/LICENSE.txt" : "jquery-migrate-3.3.2/LICENSE.txt"
451431 }
452432 }
@@ -512,7 +492,7 @@ grunt.registerTask( "update-authors", function() {
512492
513493grunt . registerTask ( "default" , [ "lint" , "requirejs" , "test" ] ) ;
514494grunt . registerTask ( "jenkins" , [ "default" , "concat" ] ) ;
515- grunt . registerTask ( "lint" , [ "asciilint" , "jshint" , "jscs ", "csslint" , "htmllint" ] ) ;
495+ grunt . registerTask ( "lint" , [ "asciilint" , "eslint " , "csslint" , "htmllint" ] ) ;
516496grunt . registerTask ( "test" , [ "qunit" ] ) ;
517497grunt . registerTask ( "sizer" , [ "requirejs:js" , "uglify:main" , "compare_size:all" ] ) ;
518498grunt . registerTask ( "sizer_all" , [ "requirejs:js" , "uglify" , "compare_size" ] ) ;
0 commit comments