Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Jan 15, 2025
1 parent 32f5083 commit efe1395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/packs/src/decidim/budgeting_pipeline/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
if (!ordersSummary.classList.contains("is-stuck")) {

Check failure on line 22 in app/packs/src/decidim/budgeting_pipeline/projects.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected negated condition
placeHolder.style.height = `${ordersSummary.offsetHeight}px`;
ordersSummary.classList.add("is-stuck");
} else {
return;
}
} else {
if (ordersSummary.classList.contains("is-stuck")) {

Check failure on line 29 in app/packs/src/decidim/budgeting_pipeline/projects.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected if as the only statement in an else block
Expand Down Expand Up @@ -74,12 +76,10 @@
document.querySelectorAll("[data-project-selector] input[type='checkbox']").forEach((el) => {

el.addEventListener("change", () => {
let requestType;
let requestType = "DELETE";

if (el.checked) {
requestType = "POST";
} else {
requestType = "DELETE";
}

loadingProjects.push(el.value);
Expand Down Expand Up @@ -120,9 +120,9 @@

clickableArea.addEventListener("click", clickHandler);

// eslint-disable-next-line no-undef
button.addEventListener("keydown", (ev) => {
if (ev.code === "Enter" || ev.code === "Space") {
// eslint-disable-next-line no-undef
buttonClickHandler(ev);
}
});
Expand Down

0 comments on commit efe1395

Please sign in to comment.