Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
John Solly committed Mar 8, 2024
1 parent 3221211 commit 9b2bffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"files": {
"ignore": [
"src/scripts/stripeBuyButton.js",
"biome.json"
"src/scripts/stripeBuyButton.js"
]
},
"linter": {
Expand All @@ -15,10 +14,6 @@
"recommended": true,
"suspicious": {
"noConsoleLog": "error"
},
"correctness": {
"noUnusedVars": "error",
"nounusedImports": "error"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ document.addEventListener("DOMContentLoaded", () => {
// When an indicator is clicked, update the carousel to show the corresponding item
for (const indicator of indicators) {
indicator.addEventListener("click", () => {
const index = parseInt(indicator.getAttribute("data-carousel-index"), 10);
const index = Number.parseInt(indicator.getAttribute("data-carousel-index"), 10);
currentCarouselIndex = index;
updateCarousel();
});
Expand Down

0 comments on commit 9b2bffc

Please sign in to comment.