-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintcache
1 lines (1 loc) · 13.8 KB
/
.eslintcache
1
[{"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\index.js":"1","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\App.js":"2","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\reportWebVitals.js":"3","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Nav.js":"4","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Calendar.js":"5","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Plant.js":"6","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Settings.js":"7","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\TodoMain.js":"8","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\Form.js":"9","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\ToDoList.js":"10","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\ToDo.js":"11","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Awards.js":"12"},{"size":519,"mtime":1616253272941,"results":"13","hashOfConfig":"14"},{"size":1269,"mtime":1616199080387,"results":"15","hashOfConfig":"14"},{"size":376,"mtime":1616253288723,"results":"16","hashOfConfig":"14"},{"size":741,"mtime":1616198918841,"results":"17","hashOfConfig":"14"},{"size":2291,"mtime":1616254352768,"results":"18","hashOfConfig":"14"},{"size":733,"mtime":1616198921759,"results":"19","hashOfConfig":"14"},{"size":2069,"mtime":1616210830201,"results":"20","hashOfConfig":"14"},{"size":2331,"mtime":1616214492709,"results":"21","hashOfConfig":"14"},{"size":1023,"mtime":1616102340126,"results":"22","hashOfConfig":"14"},{"size":616,"mtime":1615948908185,"results":"23","hashOfConfig":"14"},{"size":988,"mtime":1615948908184,"results":"24","hashOfConfig":"14"},{"size":847,"mtime":1616199087226,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"1dx1kh8",{"filePath":"29","messages":"30","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"31","usedDeprecatedRules":"28"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":13,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"40","usedDeprecatedRules":"28"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"45","usedDeprecatedRules":"28"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"48","usedDeprecatedRules":"28"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\index.js",[],["55","56"],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\App.js",["57","58"],"import React, { useState, useEffect } from \"react\";\r\nimport './App.css';\r\nimport Nav from './Nav';\r\nimport Calendar from './Calendar';\r\nimport Plant from './Plant';\r\nimport Settings from './Settings';\r\nimport TodoMain from './TodoMain';\r\nimport Awards from './Awards';\r\nimport { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';\r\n\r\n\r\nfunction App() {\r\n\r\n return (\r\n <div className=\"App\">\r\n <Router>\r\n <Nav />\r\n <Switch>\r\n <Route path=\"/plant\" component={Plant} />\r\n <Route path=\"/calendar\" component={Calendar} />\r\n <Route path=\"/settings\" component={Settings} />\r\n <Route path=\"/todo\" component={TodoMain} />\r\n <Route path=\"/awards\" component={Awards} />\r\n <Route path=\"/\" exact component={Home} />\r\n \r\n </Switch>\r\n </Router>\r\n\r\n\r\n\r\n\r\n </div>\r\n );\r\n}\r\n\r\nconst Home = () => (\r\n <div>\r\n <div className='title'>\r\n <h1>Incrementum</h1>\r\n <div className='slogan'>\r\n <p>Stimulating growth one task at a time.</p>\r\n </div>\r\n </div>\r\n <nav>\r\n <Link to='/todo' style={{ textDecoration: 'none' }}>\r\n <button className=\"btn-begin\">Begin</button>\r\n </Link>\r\n </nav>\r\n\r\n </div>\r\n);\r\nexport default App;\r\n","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\reportWebVitals.js",[],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Nav.js",[],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Calendar.js",["59","60","61","62","63","64","65","66","67","68","69","70","71"],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Plant.js",["72"],"import React, { useState, useEffect } from \"react\";\r\nimport './App.css';\r\n\r\nfunction Plant() {\r\n const RetrieveArray = () => {\r\n const tasks = JSON.parse(localStorage.getItem('todos'));\r\n const totalTasks = Object.values(tasks).flat().length;\r\n console.log(tasks);\r\n console.log(totalTasks);\r\n return totalTasks;\r\n }\r\n useEffect(() => {\r\n RetrieveArray();\r\n }, []);\r\n\r\n return (\r\n <div>\r\n <h1 className = 'title'>Your Tree</h1>\r\n <h2>You have completed {RetrieveArray()} tasks, complete {50 - RetrieveArray()} more tasks to grow your tree.</h2>\r\n\r\n <div className=\"plantimg\" />\r\n </div>\r\n \r\n )\r\n}\r\nexport default Plant;","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Settings.js",[],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\TodoMain.js",["73","74","75"],"import React, { useState, useEffect } from \"react\";\r\nimport './App.css';\r\n\r\n// importing components\r\nimport Form from './components/Form';\r\nimport ToDoList from './components/ToDoList';\r\n\r\nfunction App() {\r\n // state stuff\r\n const [inputText, setInputText] = useState(\"\");\r\n const [todos, setTodos] = useState([]);\r\n const [status, setStatus] = useState('all'); // default\r\n const [filterTodos, setFilterTodos] = useState([]);\r\n\r\n // run once when app starts\r\n useEffect(() => {\r\n getLocalTodos();\r\n }, []);\r\n\r\n // we can use useEffect so that when state changes, a function is run -> use to filter out visually\r\n // when todos changes, the function is run\r\n useEffect(() => {\r\n filterHandler();\r\n saveLocalTodos();\r\n }, [todos, status]);\r\n\r\n\r\n // functions and events\r\n const filterHandler = () => {\r\n switch (status) {\r\n case 'completed':\r\n setFilterTodos(todos.filter(todo => todo.completed == true)); // filtering todos to be true\r\n break;\r\n case 'uncompleted':\r\n setFilterTodos(todos.filter(todo => todo.completed == false)); // filtering todos to be false\r\n break;\r\n default:\r\n setFilterTodos(todos);\r\n break;\r\n }\r\n };\r\n\r\n //saving to local storage\r\n const saveLocalTodos = () => {\r\n localStorage.setItem('todos', JSON.stringify(todos));\r\n };\r\n\r\n // retrieving data from local storage\r\n const getLocalTodos = () => {\r\n if (localStorage.getItem('todos') === null) {\r\n localStorage.setItem('todos', JSON.stringify([]));\r\n } else {\r\n let todoLocal = JSON.parse(localStorage.getItem(\"todos\"));\r\n //console.log(todoLocal);\r\n setTodos(todoLocal);\r\n }\r\n }\r\n\r\n return (\r\n <div className=\"App\">\r\n <div className='title_2'>\r\n <h1>Incrementum</h1>\r\n </div>\r\n <Form inputText={inputText} todos={todos} setTodos={setTodos} setInputText={setInputText}\r\n setStatus={setStatus} />\r\n <ToDoList filterTodos={filterTodos} setTodos={setTodos} todos={todos} />\r\n\r\n <div className=\"rect\">Advertisement</div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default App;\r\n","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\Form.js",["76"],"import React from 'react';\r\n\r\n\r\nconst Form = ({ inputText, setInputText, todos, setTodos, setStatus }) => { \r\n const inputTextHandler = (e) => {\r\n console.log(e.target.value);\r\n setInputText(e.target.value);\r\n };\r\n\r\n const submitTodoHandler = (e) => {\r\n document.getElementById('audio').play();\r\n console.log(\"submitted to handler\");\r\n e.preventDefault();\r\n setTodos([\r\n ...todos, {text: inputText, completed: false, id: Math.random() * 1000, timestamp: new Date().getTime()}\r\n ]);\r\n\r\n setInputText(\"\");\r\n\r\n };\r\n\r\n const statusHandler = (e) => {\r\n console.log(e.target.value);\r\n setStatus(e.target.value);\r\n\r\n }\r\n return(\r\n <form>\r\n <input value={inputText} onChange={inputTextHandler} type=\"text\" className=\"todo-input\" />\r\n <button onClick={submitTodoHandler} className=\"todo-button\" type=\"submit\">\r\n <i className=\"fas fa-plus-square\"></i>\r\n </button>\r\n </form>\r\n )\r\n}\r\n\r\nexport default Form;","C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\ToDoList.js",[],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\components\\ToDo.js",[],"C:\\Users\\Tracy\\Desktop\\Coding Projects\\bolt-updated\\bolt\\src\\Awards.js",[],{"ruleId":"77","replacedBy":"78"},{"ruleId":"79","replacedBy":"80"},{"ruleId":"81","severity":1,"message":"82","line":1,"column":17,"nodeType":"83","messageId":"84","endLine":1,"endColumn":25},{"ruleId":"81","severity":1,"message":"85","line":1,"column":27,"nodeType":"83","messageId":"84","endLine":1,"endColumn":36},{"ruleId":"81","severity":1,"message":"82","line":1,"column":17,"nodeType":"83","messageId":"84","endLine":1,"endColumn":25},{"ruleId":"81","severity":1,"message":"86","line":2,"column":27,"nodeType":"83","messageId":"84","endLine":2,"endColumn":33},{"ruleId":"81","severity":1,"message":"87","line":2,"column":35,"nodeType":"83","messageId":"84","endLine":2,"endColumn":41},{"ruleId":"81","severity":1,"message":"88","line":2,"column":43,"nodeType":"83","messageId":"84","endLine":2,"endColumn":48},{"ruleId":"81","severity":1,"message":"89","line":3,"column":8,"nodeType":"83","messageId":"84","endLine":3,"endColumn":11},{"ruleId":"81","severity":1,"message":"90","line":4,"column":8,"nodeType":"83","messageId":"84","endLine":4,"endColumn":14},{"ruleId":"91","severity":1,"message":"92","line":25,"column":17,"nodeType":"93","endLine":25,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":27,"column":17,"nodeType":"93","endLine":27,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":29,"column":17,"nodeType":"93","endLine":29,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":31,"column":17,"nodeType":"93","endLine":31,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":33,"column":17,"nodeType":"93","endLine":33,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":35,"column":17,"nodeType":"93","endLine":35,"endColumn":43},{"ruleId":"91","severity":1,"message":"92","line":37,"column":17,"nodeType":"93","endLine":37,"endColumn":43},{"ruleId":"81","severity":1,"message":"82","line":1,"column":17,"nodeType":"83","messageId":"84","endLine":1,"endColumn":25},{"ruleId":"94","severity":1,"message":"95","line":25,"column":8,"nodeType":"96","endLine":25,"endColumn":23,"suggestions":"97"},{"ruleId":"98","severity":1,"message":"99","line":32,"column":68,"nodeType":"100","messageId":"101","endLine":32,"endColumn":70},{"ruleId":"98","severity":1,"message":"99","line":35,"column":68,"nodeType":"100","messageId":"101","endLine":35,"endColumn":70},{"ruleId":"81","severity":1,"message":"102","line":22,"column":11,"nodeType":"83","messageId":"84","endLine":22,"endColumn":24},"no-native-reassign",["103"],"no-negated-in-lhs",["104"],"no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'useEffect' is defined but never used.","'Router' is defined but never used.","'Switch' is defined but never used.","'Route' is defined but never used.","'Nav' is defined but never used.","'Awards' is defined but never used.","jsx-a11y/heading-has-content","Headings must have content and the content must be accessible by a screen reader.","JSXOpeningElement","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'filterHandler' and 'saveLocalTodos'. Either include them or remove the dependency array.","ArrayExpression",["105"],"eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","'statusHandler' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"106","fix":"107"},"Update the dependencies array to be: [todos, status, filterHandler, saveLocalTodos]",{"range":"108","text":"109"},[778,793],"[todos, status, filterHandler, saveLocalTodos]"]