style: formatting with prettier

This commit is contained in:
Mike 2024-01-08 21:10:06 -05:00
parent b357ad8ecc
commit 7eb4f96f3a
3 changed files with 28 additions and 27 deletions

View file

@ -2,7 +2,8 @@
module.exports = { module.exports = {
"env": { "env": {
"browser": true, "browser": true,
"es2021": true "es2021": true,
node: true
}, },
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {

View file

@ -81,7 +81,7 @@ class todoHandler {
let tempArr = this.projects[projectIndex].todos.filter(item => { let tempArr = this.projects[projectIndex].todos.filter(item => {
if (item.title !== title) { if (item.title !== title) {
return item; return item;
}; }
}); });
this.projects[projectIndex].todos = tempArr; this.projects[projectIndex].todos = tempArr;
} }
@ -109,7 +109,7 @@ class todoHandler {
let tempArr = this.projects.filter(item => { let tempArr = this.projects.filter(item => {
if (item !== this.projects[index] || name === 'default') { if (item !== this.projects[index] || name === 'default') {
return item; return item;
}; }
}); });
this.projects = tempArr; this.projects = tempArr;
} }