-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 10.3 KB
/
.eslintcache
1
[{"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/index.js":"1","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/App.js":"2","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Layout/Header.js":"3","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Layout/HeaderCartButton.js":"4","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/CartIcon.js":"5","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/Meals.js":"6","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealsSummary.js":"7","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/AvailableMeals.js":"8","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Card.js":"9","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealItem/MealItem.js":"10","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealItem/MealItemForm.js":"11","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Input.js":"12","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/Cart.js":"13","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Modal.js":"14","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/store/CartProvider.js":"15","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/store/cart-context.js":"16","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/CartItem.js":"17","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/Checkout.js":"18"},{"size":142,"mtime":1616594953000,"results":"19","hashOfConfig":"20"},{"size":654,"mtime":1646098060607,"results":"21","hashOfConfig":"20"},{"size":500,"mtime":1646098328506,"results":"22","hashOfConfig":"20"},{"size":1155,"mtime":1646132010442,"results":"23","hashOfConfig":"20"},{"size":488,"mtime":1646010487253,"results":"24","hashOfConfig":"20"},{"size":217,"mtime":1646012244936,"results":"25","hashOfConfig":"20"},{"size":528,"mtime":1646011955875,"results":"26","hashOfConfig":"20"},{"size":2325,"mtime":1646528052599,"results":"27","hashOfConfig":"20"},{"size":211,"mtime":1646023197419,"results":"28","hashOfConfig":"20"},{"size":833,"mtime":1646100340153,"results":"29","hashOfConfig":"20"},{"size":1145,"mtime":1646100463056,"results":"30","hashOfConfig":"20"},{"size":312,"mtime":1646099707545,"results":"31","hashOfConfig":"20"},{"size":3081,"mtime":1646533721913,"results":"32","hashOfConfig":"20"},{"size":712,"mtime":1646097463094,"results":"33","hashOfConfig":"20"},{"size":2588,"mtime":1646533654820,"results":"34","hashOfConfig":"20"},{"size":208,"mtime":1646533674784,"results":"35","hashOfConfig":"20"},{"size":610,"mtime":1646129767325,"results":"36","hashOfConfig":"20"},{"size":3388,"mtime":1646531518175,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"1i667dh",{"filePath":"41","messages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"43","messages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"45","messages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"40"},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"52","messages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"54","messages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"56","messages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"58","messages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"60","messages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"62","messages":"63","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"64","messages":"65","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"66","messages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"68","messages":"69","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"70","messages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"74","messages":"75","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/index.js",[],["76","77"],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/App.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Layout/Header.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Layout/HeaderCartButton.js",["78"],"import { useContext, useEffect, useState } from \"react\";\nimport CartContext from \"../../store/cart-context\";\nimport CartIcon from \"../Cart/CartIcon\";\nimport classes from \"./HeaderCartButton.module.css\";\nconst HeaderCartButton = (props) => {\n const [btnIsHighlighted, setBtnIsHighlighted] = useState(false);\n const cartCtx = useContext(CartContext);\n const numberOfCartItems = cartCtx.items.reduce((acc, curr) => {\n return acc + curr.amount;\n }, 0);\n\n const btnClasses = `${classes.button} ${\n btnIsHighlighted ? classes.bump : \"\"\n }`;\n\n const { items } = cartCtx;\n useEffect(() => {\n if (cartCtx.items.length === 0) return;\n setBtnIsHighlighted(true);\n const timer = setTimeout(() => {\n setBtnIsHighlighted(false);\n }, 300);\n return () => {\n clearTimeout(timer);\n };\n }, [items]);\n return (\n <button className={btnClasses} onClick={props.onClick}>\n <span className={classes.icon}>\n <CartIcon />\n </span>\n <span>Your Cart</span>\n <span className={`${classes.badge} ${classes.bump}`}>\n {numberOfCartItems}\n </span>\n </button>\n );\n};\n\nexport default HeaderCartButton;\n","/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/CartIcon.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/Meals.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealsSummary.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/AvailableMeals.js",["79"],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Card.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealItem/MealItem.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Meals/MealItem/MealItemForm.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Input.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/Cart.js",["80"],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/UI/Modal.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/store/CartProvider.js",["81"],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/store/cart-context.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/CartItem.js",[],"/Users/puja.rani/Projects/self/react-projects/food-ordering-app-react/src/components/Cart/Checkout.js",["82"],{"ruleId":"83","replacedBy":"84"},{"ruleId":"85","replacedBy":"86"},{"ruleId":"87","severity":1,"message":"88","line":26,"column":6,"nodeType":"89","endLine":26,"endColumn":13,"suggestions":"90"},{"ruleId":"91","severity":1,"message":"92","line":94,"column":7,"nodeType":"93","messageId":"94","endLine":94,"endColumn":19},{"ruleId":"95","severity":1,"message":"96","line":12,"column":10,"nodeType":"97","messageId":"98","endLine":12,"endColumn":21},{"ruleId":"99","severity":1,"message":"100","line":45,"column":33,"nodeType":"101","messageId":"102","endLine":45,"endColumn":35},{"ruleId":"99","severity":1,"message":"100","line":10,"column":30,"nodeType":"101","messageId":"102","endLine":10,"endColumn":32},"no-native-reassign",["103"],"no-negated-in-lhs",["104"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'cartCtx.items.length'. Either include it or remove the dependency array.","ArrayExpression",["105"],"react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","noDuplicateProps","no-unused-vars","'submitError' is assigned a value but never used.","Identifier","unusedVar","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","no-global-assign","no-unsafe-negation",{"desc":"106","fix":"107"},"Update the dependencies array to be: [cartCtx.items.length, items]",{"range":"108","text":"109"},[814,821],"[cartCtx.items.length, items]"]