diff --git a/src/js/__tests__/parsers.js b/src/js/__tests__/parsers.js index 5ed86ba2..8d85618e 100644 --- a/src/js/__tests__/parsers.js +++ b/src/js/__tests__/parsers.js @@ -3,7 +3,7 @@ * @copyright Copyright (c) 2019-2020 Gary Kim * * @copyright Copyright (c) 2021 Suhas Hariharan - * + * * @author Gary Kim * * @license GNU AGPL version 3 only diff --git a/src/js/components/CategoryWeighting.vue b/src/js/components/CategoryWeighting.vue index eb309b63..971d89f5 100644 --- a/src/js/components/CategoryWeighting.vue +++ b/src/js/components/CategoryWeighting.vue @@ -147,7 +147,7 @@ export default { catmap[e] = { weighting: 0, category: e }; }); } - let category_set = new Set(this.categories); + const category_set = new Set(this.categories); for (var cat in catmap) { category_set.add(cat); this.renderWeights.push(catmap[cat]); diff --git a/src/js/components/GradeTable.vue b/src/js/components/GradeTable.vue index 063bc58f..25c03bfa 100644 --- a/src/js/components/GradeTable.vue +++ b/src/js/components/GradeTable.vue @@ -138,7 +138,7 @@ export default { } let missing = 0; for (var cat in catmap) { - if (grade[cat] === undefined || grade[cat] === null || grade[cat].every((element) => element == -1)) { + if (grade[cat] === undefined || grade[cat] === null || grade[cat].every((element) => element === -1)) { if (catmap[cat].weighting !== "") { missing += catmap[cat].weighting; } @@ -154,7 +154,7 @@ export default { grade_count++; } } - if (catmap[cat].weighting !== "" && grade_count != 0) { + if (catmap[cat].weighting !== "" && grade_count !== 0) { percent += (sum / grade_count) * catmap[cat].weighting; } } diff --git a/src/js/helpers.js b/src/js/helpers.js index d5b7a720..1a82573b 100644 --- a/src/js/helpers.js +++ b/src/js/helpers.js @@ -352,7 +352,6 @@ function getDefaultConfig () { return data; } - export { gradeToFP, grade_fp,