-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintcache
More file actions
1 lines (1 loc) · 4.55 KB
/
.eslintcache
File metadata and controls
1 lines (1 loc) · 4.55 KB
1
[{"C:\\Users\\marwin\\Downloads\\Login_react\\src\\index.js":"1","C:\\Users\\marwin\\Downloads\\Login_react\\src\\App.js":"2","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\Login\\Login.js":"3","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\Home\\Home.js":"4","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\MainHeader\\MainHeader.js":"5","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\MainHeader\\Navigation.js":"6","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\UI\\Card\\Card.js":"7","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\UI\\Button\\Button.js":"8"},{"size":169,"mtime":1616593928000,"results":"9","hashOfConfig":"10"},{"size":1059,"mtime":1623673960514,"results":"11","hashOfConfig":"10"},{"size":3387,"mtime":1623765290921,"results":"12","hashOfConfig":"10"},{"size":250,"mtime":1616593928000,"results":"13","hashOfConfig":"10"},{"size":368,"mtime":1616593928000,"results":"14","hashOfConfig":"10"},{"size":571,"mtime":1616593928000,"results":"15","hashOfConfig":"10"},{"size":218,"mtime":1616593928000,"results":"16","hashOfConfig":"10"},{"size":353,"mtime":1616593928000,"results":"17","hashOfConfig":"10"},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},"13rhn2v",{"filePath":"21","messages":"22","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"23","usedDeprecatedRules":"20"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},"C:\\Users\\marwin\\Downloads\\Login_react\\src\\index.js",[],["36","37"],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\App.js",["38"],"import React, { useState, useEffect } from 'react';\n\nimport Login from './components/Login/Login';\nimport Home from './components/Home/Home';\nimport MainHeader from './components/MainHeader/MainHeader';\n\nfunction App() {\n const [isLoggedIn, setIsLoggedIn] = useState(false);\n const loginInfo = localStorage.getItem(\"isLoggedIn\");\n useEffect(() => {\n if(loginInfo===\"true\"){\n setIsLoggedIn(true);\n }\n },[]);\n \n const loginHandler = (email, password) => {\n // We should of course check email and password\n // But it's just a dummy/ demo anyways\n localStorage.setItem(\"isLoggedIn\",\"true\");\n setIsLoggedIn(true);\n };\n\n const logoutHandler = () => {\n localStorage.setItem(\"isLoggedIn\",\"false\")\n setIsLoggedIn(false);\n };\n\n return (\n <React.Fragment>\n <MainHeader isAuthenticated={isLoggedIn} onLogout={logoutHandler} />\n <main>\n {!isLoggedIn && <Login onLogin={loginHandler} />}\n {isLoggedIn && <Home onLogout={logoutHandler} />}\n </main>\n </React.Fragment>\n );\n}\n\nexport default App;\n","C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\Login\\Login.js",[],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\Home\\Home.js",[],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\MainHeader\\MainHeader.js",[],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\MainHeader\\Navigation.js",[],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\UI\\Card\\Card.js",[],"C:\\Users\\marwin\\Downloads\\Login_react\\src\\components\\UI\\Button\\Button.js",[],{"ruleId":"39","replacedBy":"40"},{"ruleId":"41","replacedBy":"42"},{"ruleId":"43","severity":1,"message":"44","line":14,"column":5,"nodeType":"45","endLine":14,"endColumn":7,"suggestions":"46"},"no-native-reassign",["47"],"no-negated-in-lhs",["48"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'loginInfo'. Either include it or remove the dependency array.","ArrayExpression",["49"],"no-global-assign","no-unsafe-negation",{"desc":"50","fix":"51"},"Update the dependencies array to be: [loginInfo]",{"range":"52","text":"53"},[417,419],"[loginInfo]"]