-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 6.56 KB
/
.eslintcache
1
[{"/Users/bunty/Desktop/Stuff/React/ecommerce/src/StateProvider.js":"1","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Header.js":"2","/Users/bunty/Desktop/Stuff/React/ecommerce/src/CheckoutProduct.js":"3","/Users/bunty/Desktop/Stuff/React/ecommerce/src/reducer.js":"4","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Product.js":"5","/Users/bunty/Desktop/Stuff/React/ecommerce/src/reportWebVitals.js":"6","/Users/bunty/Desktop/Stuff/React/ecommerce/src/App.js":"7","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Subtotal.js":"8","/Users/bunty/Desktop/Stuff/React/ecommerce/src/index.js":"9","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Checkout.js":"10","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Login.js":"11","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Firebase.js":"12","/Users/bunty/Desktop/Stuff/React/ecommerce/src/Home.js":"13"},{"size":391,"mtime":1610997240107,"results":"14","hashOfConfig":"15"},{"size":2024,"mtime":1611169469841,"results":"16","hashOfConfig":"15"},{"size":1075,"mtime":1611169452236,"results":"17","hashOfConfig":"15"},{"size":847,"mtime":1611156611471,"results":"18","hashOfConfig":"15"},{"size":1000,"mtime":1611169487824,"results":"19","hashOfConfig":"15"},{"size":362,"mtime":1610997240109,"results":"20","hashOfConfig":"15"},{"size":1227,"mtime":1611158311951,"results":"21","hashOfConfig":"15"},{"size":930,"mtime":1611169502540,"results":"22","hashOfConfig":"15"},{"size":689,"mtime":1610997240108,"results":"23","hashOfConfig":"15"},{"size":1040,"mtime":1610997240105,"results":"24","hashOfConfig":"15"},{"size":2015,"mtime":1611155080843,"results":"25","hashOfConfig":"15"},{"size":574,"mtime":1611151455035,"results":"26","hashOfConfig":"15"},{"size":2382,"mtime":1611159348447,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"hsvnb4",{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"43","usedDeprecatedRules":"44"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/bunty/Desktop/Stuff/React/ecommerce/src/StateProvider.js",[],["58","59"],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Header.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/CheckoutProduct.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/reducer.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Product.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/reportWebVitals.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/App.js",["60","61"],"import \"./App.css\";\nimport Header from \"./Header\";\nimport Home from \"./Home\";\nimport Checkout from \"./Checkout\";\nimport React, { useEffect } from \"react\";\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\";\nimport Login from \"./Login\";\nimport { auth } from \"./Firebase\";\nimport { useStateValue } from \"./StateProvider\";\n\nfunction App() {\n const [{}, dispatch] = useStateValue();\n\n useEffect(() => {\n auth.onAuthStateChanged((authUser) => {\n if (authUser) {\n console.log(\"User\", authUser.email);\n console.log(\"IF CASE===>\", authUser);\n dispatch({\n type: \"SET_USER\",\n user: authUser,\n });\n } else {\n console.log(\"ELSE CASE===>\");\n dispatch({\n type: \"SET_USER\",\n user: null,\n });\n }\n });\n return () => {};\n }, []);\n return (\n <Router>\n <div className=\"App\">\n <Header />\n <Switch>\n <Route path=\"/login\">\n <Login />\n </Route>\n <Route path=\"/checkout\">\n <Checkout />\n </Route>\n <Route path=\"/\">\n <Home />\n </Route>\n </Switch>\n </div>\n </Router>\n );\n}\n\nexport default App;\n",["62","63"],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Subtotal.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/index.js",[],["64","65"],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Checkout.js",["66"],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Login.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Firebase.js",[],"/Users/bunty/Desktop/Stuff/React/ecommerce/src/Home.js",[],{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","replacedBy":"70"},{"ruleId":"71","severity":1,"message":"72","line":12,"column":10,"nodeType":"73","messageId":"74","endLine":12,"endColumn":12},{"ruleId":"75","severity":1,"message":"76","line":32,"column":6,"nodeType":"77","endLine":32,"endColumn":8,"suggestions":"78"},{"ruleId":"67","replacedBy":"79"},{"ruleId":"69","replacedBy":"80"},{"ruleId":"67","replacedBy":"81"},{"ruleId":"69","replacedBy":"82"},{"ruleId":"83","severity":1,"message":"84","line":8,"column":22,"nodeType":"85","messageId":"86","endLine":8,"endColumn":30},"no-native-reassign",["87"],"no-negated-in-lhs",["88"],"no-empty-pattern","Unexpected empty object pattern.","ObjectPattern","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["89"],["87"],["88"],["87"],["88"],"no-unused-vars","'dispatch' is assigned a value but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation",{"desc":"90","fix":"91"},"Update the dependencies array to be: [dispatch]",{"range":"92","text":"93"},[842,844],"[dispatch]"]