fix: all auto fixable eslint issues (#31900)
* fix: eslint operator-linebreak issue * fix: eslint quotes issue * fix: react jsx indent and props issues * fix: eslint trailing spaces issues * fix: eslint line around directives issue * fix: eslint prefer template issue * fix: eslint semi rule * fix: eslint newline per chain rule * fix: eslint space infix ops rule * fix: eslint space-in-parens issue * fix: eslint space before function paren issue * fix: eslint space before blocks issue * fix: eslint arrow body style issue * fix: eslint dot-location issue * fix: eslint quotes issue * fix: eslint quote props issue * fix: eslint operator assignment issue * fix: eslint new line after import issue * fix: indent issues * fix: operator assignment issue
This commit is contained in:
committed by
GitHub
parent
118ea3a024
commit
228180b1ef
@@ -114,11 +114,11 @@ function(ValidatingView, _, $, ui, GraderView, StringUtils, HtmlUtils) {
|
||||
},
|
||||
renderGracePeriod: function() {
|
||||
var format = function(time) {
|
||||
return time >= 10 ? time.toString() : '0' + time;
|
||||
return time >= 10 ? time.toString() : `0${time}`;
|
||||
};
|
||||
var grace_period = this.model.get('grace_period');
|
||||
this.$el.find('#course-grading-graceperiod').val(
|
||||
format(grace_period.hours) + ':' + format(grace_period.minutes)
|
||||
`${format(grace_period.hours)}:${format(grace_period.minutes)}`
|
||||
);
|
||||
},
|
||||
renderMinimumGradeCredit: function() {
|
||||
@@ -266,7 +266,7 @@ function(ValidatingView, _, $, ui, GraderView, StringUtils, HtmlUtils) {
|
||||
this.$el.find('.range').each(function(i) {
|
||||
var min = (i < cutoffs.length ? cutoffs[i].cutoff : 0);
|
||||
var max = (i > 0 ? cutoffs[i - 1].cutoff : 100);
|
||||
$(this).text(min + '-' + max);
|
||||
$(this).text(`${min}-${max}`);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user