-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.08 KB
/
.eslintcache
1
[{"D:\\project-nodejs\\Kurs\\todotomy\\src\\index.js":"1","D:\\project-nodejs\\Kurs\\todotomy\\src\\App.js":"2","D:\\project-nodejs\\Kurs\\todotomy\\src\\reportWebVitals.js":"3","D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Main\\Main.js":"4","D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Header\\Header.jsx":"5","D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\serh-panel\\serh-panel.jsx":"6","D:\\project-nodejs\\Kurs\\todotomy\\src\\State\\State.js":"7","D:\\project-nodejs\\Kurs\\todotomy\\src\\render.jsx":"8","D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\textarea\\textarea.jsx":"9","D:\\project-nodejs\\Kurs\\todotomy\\src\\AppStyled.jsx":"10","D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Main\\TodoLIstItem\\TodoListIten.jsx":"11"},{"size":92,"mtime":1611930239027,"results":"12","hashOfConfig":"13"},{"size":1148,"mtime":1630084128565,"results":"14","hashOfConfig":"13"},{"size":362,"mtime":499162500000,"results":"15","hashOfConfig":"13"},{"size":619,"mtime":1630156759757,"results":"16","hashOfConfig":"13"},{"size":294,"mtime":1630156091755,"results":"17","hashOfConfig":"13"},{"size":1574,"mtime":1630144496224,"results":"18","hashOfConfig":"13"},{"size":2529,"mtime":1630080390511,"results":"19","hashOfConfig":"13"},{"size":837,"mtime":1612196862768,"results":"20","hashOfConfig":"13"},{"size":1048,"mtime":1630161465024,"results":"21","hashOfConfig":"13"},{"size":663,"mtime":1630156435433,"results":"22","hashOfConfig":"13"},{"size":1780,"mtime":1630145944184,"results":"23","hashOfConfig":"13"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},"1vdyyu0",{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":0,"warningCount":9,"fixableErrorCount":0,"fixableWarningCount":1,"source":"39","usedDeprecatedRules":"26"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"26"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\project-nodejs\\Kurs\\todotomy\\src\\index.js",[],["48","49"],"D:\\project-nodejs\\Kurs\\todotomy\\src\\App.js",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\reportWebVitals.js",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Main\\Main.js",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Header\\Header.jsx",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\serh-panel\\serh-panel.jsx",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\State\\State.js",["50","51","52","53","54","55","56","57","58"],"import {RerenderApp} from \"../render\";\r\n\r\nconst state = {\r\n arr:[\r\n {todos: \"Learn React\", id: 1 , done: true, importance: true},\r\n {todos: \"write todo\", id: 2 , done: true, importance: false},\r\n {todos: 'learn guitar song', id: 3 , done: false, importance: true},\r\n {todos: 'drink coffee', id: 4, done: false, importance: false}\r\n ],\r\n label: \"\",\r\n visibility: \"All\",\r\n};\r\n\r\nlet newId = 100;\r\n\r\nexport let deleteTodos = (id) => {\r\n let swapArr = (arr) => {\r\n const idx = arr.findIndex((el) => el.id === id);\r\n\r\n\r\n const newArray = [\r\n ...arr.slice(0, idx),\r\n ...arr.slice(idx + 1)\r\n ];\r\n\r\n return newArray\r\n }\r\n let arr2 = swapArr(state.arr)\r\n\r\n state.arr = arr2\r\n RerenderApp(state)\r\n}\r\n\r\nexport let isDone = (id) => {\r\n let swapArr = (arr) => {\r\n const idx = arr.findIndex((el) => el.id === id);\r\n let newElement ={ ...arr[idx], done: !arr[idx].done}\r\n\r\n const newArray = [\r\n ...arr.slice(0, idx),\r\n newElement,\r\n ...arr.slice(idx + 1)\r\n ];\r\n\r\n return newArray\r\n }\r\n let arr2 = swapArr(state.arr)\r\n\r\n state.arr = arr2\r\n RerenderApp(state)\r\n}\r\n\r\nexport let isImportance = (id) => {\r\n let swapArr = (arr) => {\r\n const idx = arr.findIndex((el) => el.id === id);\r\n let newElement ={ ...arr[idx], importance: !arr[idx].importance}\r\n\r\n const newArray = [\r\n ...arr.slice(0, idx),\r\n newElement,\r\n ...arr.slice(idx + 1)];\r\n\r\n return newArray\r\n }\r\n let arr2 = swapArr(state.arr)\r\n\r\n state.arr = arr2\r\n RerenderApp(state)\r\n}\r\n\r\nexport let addedNewObject = (text) => {\r\n let newObg = {\r\n todos: text,\r\n id: newId++ ,\r\n done: false,\r\n importance: false,\r\n }\r\n\r\n let arr2 = [ ...state.arr, newObg];\r\n\r\n state.arr = arr2\r\n RerenderApp(state)\r\n}\r\n\r\nexport let onLabelChange = (e) => {\r\n state.label = e.target.value\r\n RerenderApp(state)\r\n};\r\n\r\nexport let filterElement = (item, label) => {\r\n\r\n let newArr = item.filter( el => {\r\n if (label == \"\") {\r\n return el\r\n } else if (el.todos.toLowerCase().\r\n includes(label.toLowerCase())) {\r\n return el\r\n }\r\n })\r\n\r\nreturn newArr\r\n}\r\n\r\nexport let visibleElement = (on) => {\r\n state.visibility = on\r\n RerenderApp(state)\r\n}\r\n\r\nexport let filterVisibleElement = (item, visible) => {\r\n let newArr = item.filter( el => {\r\n if (visible == \"All\") {\r\n return el\r\n } else if (visible == \"Done\") {\r\n return el.done == true\r\n } else if (visible == \"Active\") {\r\n return el.done == false\r\n }\r\n })\r\n return newArr\r\n}\r\n\r\n\r\n\r\n\r\nexport default state","D:\\project-nodejs\\Kurs\\todotomy\\src\\render.jsx",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\textarea\\textarea.jsx",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\AppStyled.jsx",[],"D:\\project-nodejs\\Kurs\\todotomy\\src\\Component\\Main\\TodoLIstItem\\TodoListIten.jsx",[],{"ruleId":"59","replacedBy":"60"},{"ruleId":"61","replacedBy":"62"},{"ruleId":"63","severity":1,"message":"64","line":92,"column":32,"nodeType":"65","messageId":"66","endLine":92,"endColumn":34},{"ruleId":"67","severity":1,"message":"68","line":93,"column":15,"nodeType":"69","messageId":"70","endLine":93,"endColumn":17},{"ruleId":"71","severity":1,"message":"72","line":95,"column":38,"nodeType":"73","messageId":"74","endLine":95,"endColumn":39,"fix":"75"},{"ruleId":"63","severity":1,"message":"64","line":110,"column":31,"nodeType":"65","messageId":"66","endLine":110,"endColumn":33},{"ruleId":"67","severity":1,"message":"68","line":111,"column":17,"nodeType":"69","messageId":"70","endLine":111,"endColumn":19},{"ruleId":"67","severity":1,"message":"68","line":113,"column":24,"nodeType":"69","messageId":"70","endLine":113,"endColumn":26},{"ruleId":"67","severity":1,"message":"68","line":114,"column":22,"nodeType":"69","messageId":"70","endLine":114,"endColumn":24},{"ruleId":"67","severity":1,"message":"68","line":115,"column":24,"nodeType":"69","messageId":"70","endLine":115,"endColumn":26},{"ruleId":"67","severity":1,"message":"68","line":116,"column":22,"nodeType":"69","messageId":"70","endLine":116,"endColumn":24},"no-native-reassign",["76"],"no-negated-in-lhs",["77"],"array-callback-return","Array.prototype.filter() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","dot-location","Expected dot to be on same line as property.","MemberExpression","expectedDotBeforeProperty",{"range":"78","text":"79"},"no-global-assign","no-unsafe-negation",[2009,2016],"\r\n ."]