Skip to content

Commit

Permalink
disabled eslint for some functions kept for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dialeleven committed Jul 1, 2024
1 parent 7b4f212 commit a1c64b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/TodoList.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ function TodoList() {
}


/* eslint-disable no-unused-vars */

// Helper function (toggleCompleted) - toggles the `completed` property of a task by `id` using the `setTasks` function.
function toggleCompletedOld(id)
{
Expand Down Expand Up @@ -192,7 +194,7 @@ function TodoList() {
const completedTasksList = JSON.stringify(updatedTasksArray);
localStorage.setItem('tasks', completedTasksList);
}
/* eslint-enable no-unused-vars */

function toggleCompletedAnonFunc(id) {
/*
Expand Down Expand Up @@ -287,6 +289,8 @@ function TodoList() {
return;
}

/* eslint-disable no-unused-vars */

function toggleCompletedAnonFuncOld(id) {
/*
Update the `tasks` array using the `setTasks` function.
Expand Down Expand Up @@ -333,6 +337,8 @@ function TodoList() {
return updatedTasks;
});
}
/* eslint-enable no-unused-vars */


// Helper function (updateTask) - updates the `text` property of a task by `id` using the `setTasks` function.
function updateTask(id, newText, formattedDateTime) {
Expand Down

0 comments on commit a1c64b8

Please sign in to comment.