-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 23.3 KB
/
.eslintcache
1
[{"D:\\React Projects\\Food_App_Project - React-Router\\src\\index.js":"1","D:\\React Projects\\Food_App_Project - React-Router\\src\\App.js":"2","D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\auth-context.js":"3","D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\AuthPage.js":"4","D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\OrderSummary.js":"5","D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\HomePage.js":"6","D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\cart-context.js":"7","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Layout\\Header.js":"8","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Auth\\AuthForm.js":"9","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\Meals.js":"10","D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\CartProvider.js":"11","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Card.js":"12","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\Cart.js":"13","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealsSummary.js":"14","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Layout\\HeaderCartButton.js":"15","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\ErrorModale.js":"16","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\CartItem.js":"17","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Modale.js":"18","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\Checkout.js":"19","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\AvailableMeals.js":"20","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\CartIcon.js":"21","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealItem\\MealItems.js":"22","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealItem\\MealItemForm.js":"23","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Input.js":"24"},{"size":402,"mtime":1645897207098,"results":"25","hashOfConfig":"26"},{"size":677,"mtime":1645975363663,"results":"27","hashOfConfig":"26"},{"size":925,"mtime":1645896282338,"results":"28","hashOfConfig":"26"},{"size":954,"mtime":1645877909742,"results":"29","hashOfConfig":"26"},{"size":4396,"mtime":1645976768116,"results":"30","hashOfConfig":"26"},{"size":750,"mtime":1644699487536,"results":"31","hashOfConfig":"26"},{"size":219,"mtime":1643999474526,"results":"32","hashOfConfig":"26"},{"size":1198,"mtime":1645976661073,"results":"33","hashOfConfig":"26"},{"size":3165,"mtime":1644767780120,"results":"34","hashOfConfig":"26"},{"size":296,"mtime":1643201899107,"results":"35","hashOfConfig":"26"},{"size":3106,"mtime":1643998412140,"results":"36","hashOfConfig":"26"},{"size":187,"mtime":1642972419893,"results":"37","hashOfConfig":"26"},{"size":3347,"mtime":1645976783845,"results":"38","hashOfConfig":"26"},{"size":546,"mtime":1642959786873,"results":"39","hashOfConfig":"26"},{"size":1271,"mtime":1643316757053,"results":"40","hashOfConfig":"26"},{"size":582,"mtime":1644752273316,"results":"41","hashOfConfig":"26"},{"size":612,"mtime":1643242841905,"results":"42","hashOfConfig":"26"},{"size":706,"mtime":1644752365157,"results":"43","hashOfConfig":"26"},{"size":3683,"mtime":1645878435664,"results":"44","hashOfConfig":"26"},{"size":1915,"mtime":1644752241957,"results":"45","hashOfConfig":"26"},{"size":523,"mtime":1642946061185,"results":"46","hashOfConfig":"26"},{"size":991,"mtime":1643238835849,"results":"47","hashOfConfig":"26"},{"size":1303,"mtime":1645974831579,"results":"48","hashOfConfig":"26"},{"size":249,"mtime":1643220461461,"results":"49","hashOfConfig":"26"},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},"1lbw78i",{"filePath":"53","messages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"55","usedDeprecatedRules":"52"},{"filePath":"56","messages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"58","messages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"60","messages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"62"},{"filePath":"63","messages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"65","messages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"67","messages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"69"},{"filePath":"70","messages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"72","messages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"74","messages":"75","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"76","messages":"77","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"78","messages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"80"},{"filePath":"81","messages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"83","messages":"84","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"85","messages":"86","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"87","messages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"89","messages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"91","messages":"92","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"93","messages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"95","messages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"97","messages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"99","messages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"101","usedDeprecatedRules":"52"},{"filePath":"102","messages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},"D:\\React Projects\\Food_App_Project - React-Router\\src\\index.js",[],["104","105"],"D:\\React Projects\\Food_App_Project - React-Router\\src\\App.js",["106","107"],"import { useContext,Fragment } from \"react\";\nimport { Route, Switch,Redirect } from \"react-router-dom\";\nimport OrderSummary from \"./pages/OrderSummary\";\nimport HomePage from \"./pages/HomePage\";\nimport AuthPage from \"./pages/AuthPage\";\nimport AuthContext from \"./store/auth-context\";\nfunction App() {\n\n const authCtx = useContext(AuthContext);\n return (\n <Fragment>\n <Switch>\n <Route path=\"/ordersummary\" exact>\n <OrderSummary/>\n </Route>\n <Route path=\"/login\" exact>\n <AuthPage />\n </Route>\n <Route path=\"/\">\n <HomePage />\n </Route>\n </Switch>\n </Fragment>\n \n );\n}\n\nexport default App;\n","D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\auth-context.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\AuthPage.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\OrderSummary.js",["108","109","110","111","112","113"],"import { Fragment ,useContext, useEffect ,useState} from \"react\";\r\nimport { Link ,Redirect,useHistory} from \"react-router-dom\";\r\nimport classes from \"./OrderSummary.module.css\";\r\nimport mealsImage from \"../assets/meals.jpg\";\r\nimport Card from \"../components/UI/Card\";\r\nimport AuthContext from \"../store/auth-context\";\r\nconst OrderSummary = ()=>{\r\n const [meals,setMeals] = useState([]);\r\n const [error,setError] = useState();\r\n const [isLoading, setIsLoading] = useState(false);\r\n const authCtx = useContext(AuthContext);\r\n console.log(authCtx);\r\n\r\n const isLoggedIn = authCtx.isLoggedIn;\r\n const logoutHandler = ()=>{\r\n console.log(authCtx.logout()+\"Hello\");\r\n }\r\n const MainTheme = <div>\r\n <header className={classes.header}>\r\n <h1>MyMeals</h1>\r\n <nav>\r\n <ul>\r\n <li><Link to=\"/OrderSummary\">OrderSummary</Link></li>\r\n {!isLoggedIn && <li><Link to=\"/login\">Login/Register</Link></li>}\r\n {isLoggedIn===true && <li><Link to='/' onClick={logoutHandler}>Logout</Link></li>}\r\n </ul>\r\n </nav>\r\n </header>\r\n <div className={classes['main-image']}>\r\n <img src={mealsImage} alt=\"A table full of delicious food!\"/>\r\n </div>\r\n </div>\r\n useEffect(() => {\r\n if(isLoggedIn===true){\r\n const fetchOrderedMeals = async()=>{\r\n const loadedMeals=[];\r\n const fetchmeals = await fetch(\"https://mohit-http-default-rtdb.firebaseio.com/orders.json\");\r\n if(!fetchmeals.ok){\r\n throw new Error(\"Something went wrong\");\r\n }\r\n setIsLoading(true);\r\n const data = await fetchmeals.json();\r\n console.log(data);\r\n for(const key in data){\r\n for(let i=0;i<data[key].orderedItems.length;i++){\r\n loadedMeals.push({\r\n key: data[key].orderedItems[i].id,\r\n id:key,\r\n name: data[key].orderedItems[i].name,\r\n price: data[key].orderedItems[i].price,\r\n amount: data[key].orderedItems[i].amount\r\n })\r\n }\r\n }\r\n console.log(loadedMeals);\r\n setMeals(loadedMeals);\r\n }\r\n fetchOrderedMeals().catch((error)=>{\r\n setError(error.message);\r\n });\r\n }\r\n }, [])\r\n console.log(\"order \")\r\n if(isLoggedIn){\r\n if(meals.length===0){\r\n return <Fragment>\r\n {MainTheme}\r\n <section className={classes.meals}>\r\n <Card>\r\n {isLoading && <h3>Sorry!! You have not placed any order yet. Please place some order to see items in your Order Summary</h3> || <h3>Loading Data...</h3>} \r\n </Card>\r\n </section>\r\n </Fragment>\r\n }\r\n if(meals.length>0){\r\n return <Fragment>\r\n {MainTheme}\r\n <section className={classes.meals}>\r\n <Card>\r\n <ul>\r\n {meals.map(mealItem =>\r\n <li key={mealItem.key}>\r\n <div className={classes.list} >\r\n <span><h3>{mealItem.name}</h3></span>\r\n <span>{\"X \"}{mealItem.amount}</span>\r\n <span className={classes.price}>{\"$\"+mealItem.price}</span>\r\n </div>\r\n </li>\r\n )}\r\n </ul>\r\n </Card>\r\n </section>\r\n </Fragment>\r\n }\r\n }\r\nif(!isLoggedIn){\r\n return <Fragment>\r\n {MainTheme}\r\n <section className={classes.meals}>\r\n <Card>\r\n {<h3>Sorry!! You cannot place orders as you are not LoggedIn, first login then place orders.</h3>} \r\n </Card>\r\n </section>\r\n </Fragment>\r\n\r\n}\r\n return null;\r\n}\r\n\r\nexport default OrderSummary;","D:\\React Projects\\Food_App_Project - React-Router\\src\\pages\\HomePage.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\cart-context.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Layout\\Header.js",["114"],"import React, { useContext } from \"react\"\r\nimport classes from \"./Header.module.css\";\r\nimport mealsImage from \"../../assets/meals.jpg\";\r\nimport HeaderCartButton from \"./HeaderCartButton\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport AuthContext from \"../../store/auth-context\";\r\nconst Header = (props) =>{\r\n const logoutHandler = ()=>{\r\n console.log(authCtx.logout()+\"Hello\");\r\n }\r\n const authCtx = useContext(AuthContext);\r\n return <React.Fragment>\r\n <header className={classes.header}>\r\n <h1>MyMeals</h1>\r\n <HeaderCartButton onShow={props.onShowClick}/>\r\n <nav>\r\n <ul>\r\n <li><Link to=\"/OrderSummary\">OrderSummary</Link></li>\r\n {!authCtx.isLoggedIn && <li><Link to=\"/login\">Login/Register</Link></li>}\r\n {authCtx.isLoggedIn && <li><Link to='/' onClick={logoutHandler}>Logout</Link></li>}\r\n </ul>\r\n </nav>\r\n </header>\r\n <div className={classes['main-image']}>\r\n <img src={mealsImage} alt=\"A table full of delicious food!\"/>\r\n </div>\r\n \r\n </React.Fragment>\r\n}\r\n\r\nexport default Header;","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Auth\\AuthForm.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\Meals.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\store\\CartProvider.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Card.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\Cart.js",["115"],"import classes from \"./Cart.module.css\";\r\nimport React, { useContext,useState } from \"react\";\r\nimport Modale from \"../UI/Modale\";\r\nimport CartContext from \"../../store/cart-context\";\r\nimport CartItem from \"./CartItem\";\r\nimport Checkout from \"./Checkout\";\r\nimport AuthContext from \"../../store/auth-context\";\r\nconst Cart = (props) =>{\r\n\r\n const cartCtx = useContext(CartContext);\r\n\r\n const authCtx = useContext(AuthContext);\r\n\r\n const hasItems = cartCtx.items.length>0;\r\n\r\n const [isCheckout,setIsCheckout] = useState(false);\r\n const [isSubmitting, setIsSubmitting] = useState(false);\r\n const [didSubmit, setDidSubmit] = useState(false);\r\n\r\n const cartItemAddHandler = (item)=>{\r\n cartCtx.addItem({...item,amount:1});\r\n }\r\n const cartItemRemoveHandler = (id)=>{\r\n cartCtx.removeItem(id);\r\n }\r\n const orderHandler = ()=>{\r\n setIsCheckout(true);\r\n }\r\n \r\n const submitOrderHandler = async (userData) => {\r\n setIsSubmitting(true);\r\n await fetch('https://mohit-http-default-rtdb.firebaseio.com/orders.json', {\r\n method: 'POST',\r\n body: JSON.stringify({\r\n user: userData,\r\n orderedItems: cartCtx.items,\r\n }),\r\n });\r\n setIsSubmitting(false);\r\n setDidSubmit(true);\r\n cartCtx.clearCart();\r\n };\r\n\r\n const cartItems = (\r\n <ul className={classes['cart-items']}>\r\n {cartCtx.items.map((item) => (\r\n <CartItem \r\n key={item.id} \r\n name={item.name} \r\n price={item.price} \r\n amount={item.amount} \r\n onRemove={cartItemRemoveHandler.bind(null,item.id)}\r\n onAdd={cartItemAddHandler.bind(null,item)}\r\n />\r\n ))}\r\n </ul>\r\n );\r\n const modalActions = (\r\n <div className={classes.actions}>\r\n <button className={classes['button--alt']} onClick={props.onHideClick}>\r\n Close\r\n </button>\r\n {hasItems && (\r\n <button className={classes.button} onClick={orderHandler}>\r\n Order\r\n </button>\r\n )}\r\n </div>\r\n );\r\n const cartModalContent = (\r\n <React.Fragment>\r\n {cartItems}\r\n <div className={classes.total}>\r\n <span>Total Amount</span>\r\n <span>${cartCtx.totalAmount.toFixed(2)}</span>\r\n </div>\r\n {isCheckout && (\r\n <Checkout onConfirm={submitOrderHandler} onCancel={props.onHideClick} />\r\n )}\r\n {!isCheckout && modalActions}\r\n </React.Fragment>\r\n );\r\n\r\n const isSubmittingModalContent = <p>Sending order data...</p>;\r\n\r\n const didSubmitModalContent = (\r\n <React.Fragment>\r\n <p>Successfully sent the order!</p>\r\n <div className={classes.actions}>\r\n <button className={classes.button} onClick={props.onHideClick}>\r\n Close\r\n </button>\r\n </div>\r\n </React.Fragment>\r\n );\r\n\r\n return <Modale onHide={props.onHideClick}>\r\n {!isSubmitting && !didSubmit && cartModalContent}\r\n {isSubmitting && isSubmittingModalContent}\r\n {!isSubmitting && didSubmit && didSubmitModalContent}\r\n </Modale>\r\n}\r\n\r\nexport default Cart;","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealsSummary.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Layout\\HeaderCartButton.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\ErrorModale.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\CartItem.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Modale.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\Checkout.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\AvailableMeals.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Cart\\CartIcon.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealItem\\MealItems.js",[],"D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\Meals\\MealItem\\MealItemForm.js",["116"],"import classes from \"./MealItemForm.module.css\";\r\nimport Input from \"../../UI/Input\";\r\nimport React, { useContext, useState } from \"react\";\r\nimport AuthContext from \"../../../store/auth-context\";\r\n\r\nconst MealItemForm = (props) =>{\r\n const [amountIsValid,setAmountIsValid] = useState(true);\r\n const authCtx = useContext(AuthContext);\r\n const isLoggedIn = authCtx.isLoggedIn;\r\n const submitHandler = (event) =>{\r\n event.preventDefault();\r\n const enteredAmount = +event.target[0].value;\r\n if(enteredAmount<1 || enteredAmount>5){\r\n setAmountIsValid(false);\r\n return;\r\n }\r\n props.onAddToCart(enteredAmount);\r\n }\r\n return <form className={classes.form} onSubmit={submitHandler}>\r\n <Input \r\n label=\"Amount\"\r\n input={{\r\n id : \"amount\"+props.id,\r\n type: 'number',\r\n min: '1',\r\n max: '5',\r\n step: '1',\r\n defaultValue:\"1\",\r\n }}\r\n />\r\n <button>+ Add</button>\r\n {!amountIsValid && <p>Please enter a valid amount (1-5).</p>}\r\n </form>\r\n}\r\nexport default MealItemForm;","D:\\React Projects\\Food_App_Project - React-Router\\src\\components\\UI\\Input.js",[],{"ruleId":"117","replacedBy":"118"},{"ruleId":"119","replacedBy":"120"},{"ruleId":"121","severity":1,"message":"122","line":2,"column":24,"nodeType":"123","messageId":"124","endLine":2,"endColumn":32},{"ruleId":"121","severity":1,"message":"125","line":9,"column":9,"nodeType":"123","messageId":"124","endLine":9,"endColumn":16},{"ruleId":"121","severity":1,"message":"122","line":2,"column":16,"nodeType":"123","messageId":"124","endLine":2,"endColumn":24},{"ruleId":"121","severity":1,"message":"126","line":2,"column":25,"nodeType":"123","messageId":"124","endLine":2,"endColumn":35},{"ruleId":"121","severity":1,"message":"127","line":9,"column":12,"nodeType":"123","messageId":"124","endLine":9,"endColumn":17},{"ruleId":"128","severity":1,"message":"129","line":62,"column":8,"nodeType":"130","endLine":62,"endColumn":10,"suggestions":"131"},{"ruleId":"132","severity":1,"message":"133","line":70,"column":40,"nodeType":"134","messageId":"135","endLine":70,"endColumn":42},{"ruleId":"132","severity":1,"message":"133","line":70,"column":154,"nodeType":"134","messageId":"135","endLine":70,"endColumn":156},{"ruleId":"121","severity":1,"message":"122","line":5,"column":16,"nodeType":"123","messageId":"124","endLine":5,"endColumn":24},{"ruleId":"121","severity":1,"message":"125","line":12,"column":11,"nodeType":"123","messageId":"124","endLine":12,"endColumn":18},{"ruleId":"121","severity":1,"message":"136","line":9,"column":11,"nodeType":"123","messageId":"124","endLine":9,"endColumn":21},"no-native-reassign",["137"],"no-negated-in-lhs",["138"],"no-unused-vars","'Redirect' is defined but never used.","Identifier","unusedVar","'authCtx' is assigned a value but never used.","'useHistory' is defined but never used.","'error' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'isLoggedIn'. Either include it or remove the dependency array.","ArrayExpression",["139"],"no-mixed-operators","Unexpected mix of '&&' and '||'. Use parentheses to clarify the intended order of operations.","LogicalExpression","unexpectedMixedOperator","'isLoggedIn' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"140","fix":"141"},"Update the dependencies array to be: [isLoggedIn]",{"range":"142","text":"143"},[2566,2568],"[isLoggedIn]"]