-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 4.28 KB
/
.eslintcache
1
[{"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\index.js":"1","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\App.jsx":"2","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Header.jsx":"3","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Footer.jsx":"4","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Note.jsx":"5","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\notes.js":"6","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\CreateArea.jsx":"7"},{"size":240,"mtime":1612154043492,"results":"8","hashOfConfig":"9"},{"size":947,"mtime":1612421366366,"results":"10","hashOfConfig":"9"},{"size":276,"mtime":1612422727126,"results":"11","hashOfConfig":"9"},{"size":245,"mtime":1611843438996,"results":"12","hashOfConfig":"9"},{"size":397,"mtime":1612421403111,"results":"13","hashOfConfig":"9"},{"size":764,"mtime":1612154021727,"results":"14","hashOfConfig":"9"},{"size":1449,"mtime":1612422677915,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"n2aktg",{"filePath":"19","messages":"20","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"21","usedDeprecatedRules":"18"},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\index.js",[],["33","34"],"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\App.jsx",["35"],"import React, { useState } from \"react\";\r\nimport Header from \"./Header\";\r\nimport Note from \"./Note\";\r\nimport Footer from \"./Footer\";\r\nimport CreateArea from \"./CreateArea\";\r\n\r\nfunction App() {\r\n const [notes, setNotes] = useState([]);\r\n\r\n function addNote(newNote) {\r\n setNotes((prevNotes) => {\r\n return [...prevNotes, newNote];\r\n });\r\n }\r\n\r\n function deleteNote(id) {\r\n setNotes((prevNotes) => {\r\n return prevNotes.filter((noteItem, index) => {\r\n return index !== id;\r\n });\r\n });\r\n }\r\n return (\r\n <div>\r\n <Header />\r\n <CreateArea onAdd={addNote} />\r\n {notes.map((noteItem, index) => {\r\n return (\r\n <Note\r\n key={index}\r\n id={index}\r\n title={noteItem.title}\r\n content={noteItem.content}\r\n onDelete={deleteNote}\r\n />\r\n );\r\n })}\r\n {/* <Footer /> */}\r\n </div>\r\n );\r\n}\r\n\r\nexport default App;\r\n","C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Header.jsx",[],"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Footer.jsx",[],"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\Note.jsx",[],"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\notes.js",[],["36","37"],"C:\\Users\\63930\\Desktop\\Udemy Course\\Dr. Angela Yu\\React\\my-app\\src\\components\\CreateArea.jsx",[],{"ruleId":"38","replacedBy":"39"},{"ruleId":"40","replacedBy":"41"},{"ruleId":"42","severity":1,"message":"43","line":4,"column":8,"nodeType":"44","messageId":"45","endLine":4,"endColumn":14},{"ruleId":"38","replacedBy":"46"},{"ruleId":"40","replacedBy":"47"},"no-native-reassign",["48"],"no-negated-in-lhs",["49"],"no-unused-vars","'Footer' is defined but never used.","Identifier","unusedVar",["48"],["49"],"no-global-assign","no-unsafe-negation"]