-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 10 KB
/
.eslintcache
1
[{"E:\\Akshay\\gmail-clone-yt\\src\\index.js":"1","E:\\Akshay\\gmail-clone-yt\\src\\App.js":"2","E:\\Akshay\\gmail-clone-yt\\src\\serviceWorker.js":"3","E:\\Akshay\\gmail-clone-yt\\src\\app\\store.js":"4","E:\\Akshay\\gmail-clone-yt\\src\\Header.js":"5","E:\\Akshay\\gmail-clone-yt\\src\\Sidebar.js":"6","E:\\Akshay\\gmail-clone-yt\\src\\SidebarOption.js":"7","E:\\Akshay\\gmail-clone-yt\\src\\EmailList.js":"8","E:\\Akshay\\gmail-clone-yt\\src\\Mail.js":"9","E:\\Akshay\\gmail-clone-yt\\src\\Section.js":"10","E:\\Akshay\\gmail-clone-yt\\src\\EmailRow.js":"11","E:\\Akshay\\gmail-clone-yt\\src\\features\\mailSlice.js":"12","E:\\Akshay\\gmail-clone-yt\\src\\SendMail.js":"13","E:\\Akshay\\gmail-clone-yt\\src\\Firebase.js":"14","E:\\Akshay\\gmail-clone-yt\\src\\features\\userSlice.js":"15","E:\\Akshay\\gmail-clone-yt\\src\\Login.js":"16"},{"size":623,"mtime":1647576486577,"results":"17","hashOfConfig":"18"},{"size":1565,"mtime":1647594170222,"results":"19","hashOfConfig":"18"},{"size":5014,"mtime":1647498438888,"results":"20","hashOfConfig":"18"},{"size":250,"mtime":1647591384395,"results":"21","hashOfConfig":"18"},{"size":1619,"mtime":1652848225630,"results":"22","hashOfConfig":"18"},{"size":2155,"mtime":1647579643580,"results":"23","hashOfConfig":"18"},{"size":323,"mtime":1647511631890,"results":"24","hashOfConfig":"18"},{"size":5646,"mtime":1647590598184,"results":"25","hashOfConfig":"18"},{"size":2743,"mtime":1647588280277,"results":"26","hashOfConfig":"18"},{"size":402,"mtime":1647523163301,"results":"27","hashOfConfig":"18"},{"size":1364,"mtime":1647587864923,"results":"28","hashOfConfig":"18"},{"size":724,"mtime":1647587550038,"results":"29","hashOfConfig":"18"},{"size":2234,"mtime":1647585661212,"results":"30","hashOfConfig":"18"},{"size":586,"mtime":1652945587009,"results":"31","hashOfConfig":"18"},{"size":466,"mtime":1647591434114,"results":"32","hashOfConfig":"18"},{"size":1099,"mtime":1647593088017,"results":"33","hashOfConfig":"18"},{"filePath":"34","messages":"35","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"1j32m9h",{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"36"},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"42","messages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"44","messages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"52","messages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"54","messages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"56","messages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"58","messages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"60","messages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"62","usedDeprecatedRules":"36"},{"filePath":"63","messages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"67","messages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"E:\\Akshay\\gmail-clone-yt\\src\\index.js",[],["69","70"],"E:\\Akshay\\gmail-clone-yt\\src\\App.js",["71"],"import React, { useEffect } from \"react\";\nimport \"./App.css\";\nimport Header from \"./Header\";\nimport Sidebar from \"./Sidebar\";\nimport Mail from \"./Mail\";\nimport EmailList from \"./EmailList\";\n\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\";\nimport SendMail from \"./SendMail\";\nimport { useSelector } from \"react-redux\";\nimport { selectSendMessageIsOpen } from \"./features/mailSlice\";\nimport { login, selectUser } from \"./features/userSlice\";\nimport Login from \"./Login\";\nimport { useDispatch } from \"react-redux\";\nimport { auth } from \"./Firebase\";\n\nfunction App() {\n const sendMessageIsOpen = useSelector(selectSendMessageIsOpen);\n\n const user = useSelector(selectUser);\n\n const dispatch = useDispatch();\n\n useEffect(() => {\n auth.onAuthStateChanged((user) => {\n if (user) {\n // user is logged in\n dispatch(\n login({\n displayName: user.displayName,\n email: user.email,\n photoUrl: user.photoUrl,\n })\n );\n }\n });\n }, []);\n\n return (\n <Router>\n {!user ? (\n <Login />\n ) : (\n <div className=\"App\">\n <Header />\n\n <div className=\"app__body\">\n <Sidebar />\n\n <Switch>\n <Route path=\"/mail\">\n <Mail />\n </Route>\n\n <Route path=\"/\">\n <EmailList />\n </Route>\n </Switch>\n </div>\n {sendMessageIsOpen && <SendMail />}\n </div>\n )}\n </Router>\n );\n}\n\nexport default App;\n","E:\\Akshay\\gmail-clone-yt\\src\\serviceWorker.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\app\\store.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\Header.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\Sidebar.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\SidebarOption.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\EmailList.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\Mail.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\Section.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\EmailRow.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\features\\mailSlice.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\SendMail.js",["72"],"import React from \"react\";\r\nimport \"./SendMail.css\";\r\nimport CloseIcon from \"@mui/icons-material/Close\";\r\nimport { Button } from \"@material-ui/core\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { closeSendMessage } from \"./features/mailSlice\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { db } from \"./Firebase\";\r\nimport firebase from \"firebase\";\r\n\r\nfunction SendMail() {\r\n const { register, handleSubmit, watch, errors } = useForm();\r\n\r\n const dispatch = useDispatch();\r\n\r\n const onSubmit = (formData) => {\r\n console.log(formData);\r\n db.collection(\"emails\").add({\r\n to: formData.to,\r\n subject: formData.subject,\r\n message: formData.message,\r\n timestamp: firebase.firestore.FieldValue.serverTimestamp(),\r\n });\r\n\r\n dispatch(closeSendMessage());\r\n };\r\n\r\n return (\r\n <div className=\"sendMail\">\r\n <div className=\"sendMail__header\">\r\n <h3>New Message</h3>\r\n\r\n <CloseIcon\r\n onClick={() => dispatch(closeSendMessage())}\r\n className=\"sendMail__close\"\r\n />\r\n </div>\r\n <form onSubmit={handleSubmit(onSubmit)}>\r\n <input\r\n name=\"to\"\r\n placeholder=\"To\"\r\n type=\"email\"\r\n ref={register({ required: true })}\r\n />\r\n {errors.to && <p className=\"sendMail__error\">To is Required!</p>}\r\n <input\r\n name=\"subject\"\r\n placeholder=\"Subject\"\r\n type=\"text\"\r\n ref={register({ required: true })}\r\n />\r\n {errors.subject && (\r\n <p className=\"sendMail__error\">Subject is Required!</p>\r\n )}\r\n <input\r\n name=\"message\"\r\n placeholder=\"Message..\"\r\n type=\"text\"\r\n className=\"sendMail__message\"\r\n ref={register({ required: true })}\r\n />\r\n {errors.message && (\r\n <p className=\"sendMail__error\">Message is Required!</p>\r\n )}\r\n\r\n <div className=\"sendMail__options\">\r\n <Button\r\n className=\"sendMail__send\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n type=\"submit\"\r\n >\r\n Send\r\n </Button>\r\n </div>\r\n </form>\r\n </div>\r\n );\r\n}\r\n\r\nexport default SendMail;\r\n","E:\\Akshay\\gmail-clone-yt\\src\\Firebase.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\features\\userSlice.js",[],"E:\\Akshay\\gmail-clone-yt\\src\\Login.js",[],{"ruleId":"73","replacedBy":"74"},{"ruleId":"75","replacedBy":"76"},{"ruleId":"77","severity":1,"message":"78","line":37,"column":6,"nodeType":"79","endLine":37,"endColumn":8,"suggestions":"80"},{"ruleId":"81","severity":1,"message":"82","line":12,"column":35,"nodeType":"83","messageId":"84","endLine":12,"endColumn":40},"no-native-reassign",["85"],"no-negated-in-lhs",["86"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["87"],"no-unused-vars","'watch' is assigned a value but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation",{"desc":"88","fix":"89"},"Update the dependencies array to be: [dispatch]",{"range":"90","text":"91"},[1033,1035],"[dispatch]"]