mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 14:20:43 -05:00
style: formatting with prettier
This commit is contained in:
parent
b357ad8ecc
commit
7eb4f96f3a
3 changed files with 28 additions and 27 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue