eslint规则强制空间)和{

时间:2015-06-27 03:38:48

标签: javascript eslint

$ ./bin/array_2d_fill_uniq the original array is: 19 1 38 51 37 95 74 42 23 76 17 24 14 22 25 11 50 10 84 45 78 44 66 46 98 the second array with unique values is: 81 16 34 69 65 87 88 35 67 79 89 43 55 18 12 77 83 93 9 99 34 94 75 2 72 comparison in sorted 1D array format (easier to check): 1 10 11 14 17 19 22 23 24 25 37 38 42 44 45 46 50 51 66 74 76 78 84 95 98 2 9 12 16 18 34 34 35 43 55 65 67 69 72 75 77 79 81 83 87 88 89 93 94 99 $("#enddate").keyup(function(){ var startDate = $('#startdate').val().replace('-','/'); var endDate = $('#enddate').val().replace('-','/'); if(startDate > endDate){ $('#errmsg').html('Start time must be smaller than End time'); }else{ $('#errmsg').html(''); } }); 之间是否有eslint rule强制空格?

无效

)

有效

{

1 个答案:

答案 0 :(得分:1)

space-before-blocks规则可以做到这一点。