From 8fd6c82defaf5c0723c9bcadd91ee66590fb4b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ma=C4=87kowski?= Date: Wed, 15 Feb 2023 22:17:24 +0000 Subject: [PATCH] chore: fix some linter problems --- ext/js/common.js | 2 +- ext/js/problem.js | 2 +- ext/js/results-list.js | 2 +- ext/js/results.js | 2 +- ext/js/submit.js | 2 +- gulpfile.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/js/common.js b/ext/js/common.js index 340fe18..9120fe7 100644 --- a/ext/js/common.js +++ b/ext/js/common.js @@ -17,7 +17,7 @@ function getContestAndProblemID(url) { return { contestID: match[1], problemID: match[2], - } + }; } if (typeof module !== 'undefined') { diff --git a/ext/js/problem.js b/ext/js/problem.js index 34b235d..1143c87 100644 --- a/ext/js/problem.js +++ b/ext/js/problem.js @@ -5,7 +5,7 @@ const resultsUrl = `${SATORI_URL_HTTPS}contest/${contestID}/results?results_filter_problem=${problemID}`; $('Results') .attr('href', resultsUrl) - .appendTo('#content > .buttton_bar') + .appendTo('#content > .buttton_bar'); function parseResultsPage(html) { for (const x of $.parseHTML(html)) { diff --git a/ext/js/results-list.js b/ext/js/results-list.js index d1e8ce8..edc928a 100644 --- a/ext/js/results-list.js +++ b/ext/js/results-list.js @@ -19,7 +19,7 @@ } $(`Submit another`) .attr('href', `${SATORI_URL_HTTPS}contest/${contestID}/submit?select=${problemID}`) - .appendTo('#content .button_bar') + .appendTo('#content .button_bar'); } addCompareSubmitsButton(); diff --git a/ext/js/results.js b/ext/js/results.js index 6b9bc1e..dc36645 100644 --- a/ext/js/results.js +++ b/ext/js/results.js @@ -100,6 +100,6 @@ $('
') .append(resultsButton) .append(submitButton) - .insertAfter('#content .results') + .insertAfter('#content .results'); }); })(); diff --git a/ext/js/submit.js b/ext/js/submit.js index 90efbc7..bd0d3bc 100644 --- a/ext/js/submit.js +++ b/ext/js/submit.js @@ -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); diff --git a/gulpfile.js b/gulpfile.js index a58c208..425ee43 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')); });