Skip to content

Commit

Permalink
chore: fix some linter problems
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tx committed Feb 15, 2023
1 parent e45f0f4 commit 8fd6c82
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ext/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getContestAndProblemID(url) {
return {
contestID: match[1],
problemID: match[2],
}
};
}

if (typeof module !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion ext/js/problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const resultsUrl = `${SATORI_URL_HTTPS}contest/${contestID}/results?results_filter_problem=${problemID}`;
$('<a class="button">Results</a>')
.attr('href', resultsUrl)
.appendTo('#content > .buttton_bar')
.appendTo('#content > .buttton_bar');

function parseResultsPage(html) {
for (const x of $.parseHTML(html)) {
Expand Down
2 changes: 1 addition & 1 deletion ext/js/results-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
$(`<a class="button">Submit another</a>`)
.attr('href', `${SATORI_URL_HTTPS}contest/${contestID}/submit?select=${problemID}`)
.appendTo('#content .button_bar')
.appendTo('#content .button_bar');
}

addCompareSubmitsButton();
Expand Down
2 changes: 1 addition & 1 deletion ext/js/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
$('<div class="button_bar"></div>')
.append(resultsButton)
.append(submitButton)
.insertAfter('#content .results')
.insertAfter('#content .results');
});
})();
2 changes: 1 addition & 1 deletion ext/js/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
codeTextarea.attr('disabled', fileSelected);
filePicker.attr('disabled', textEntered);
submitButton.attr('disabled', loading || !problemSelect.val() || !(textEntered || fileSelected));
}
};

problemSelect.on('change', updatePickers);
filePicker.on('change', updatePickers);
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gulp.task('sass', function () {

gulp.task('jshint', function () {
return gulp.src(path.join(EXT_DIR, 'js/**/*.js'))
.pipe(jshint({esversion: 6}))
.pipe(jshint({esversion: 11}))
.pipe(jshint.reporter('default'));
});

Expand Down

0 comments on commit 8fd6c82

Please sign in to comment.