-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 9.15 KB
/
.eslintcache
1
[{"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\index.js":"1","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\App.js":"2","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Layout\\Header.js":"3","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Layout\\HeaderButton.js":"4","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\CartIcon.js":"5","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\Meals.js":"6","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\AvailableMeals.js":"7","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealsSummary.js":"8","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Card.js":"9","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealItem\\MealItem.js":"10","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealItem\\MealItemForm.js":"11","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Input.js":"12","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\Cart.js":"13","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Modal.js":"14","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Store\\CartProvider.js":"15","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Store\\cart-context.js":"16","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\CartItem.js":"17","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\Checkout.js":"18"},{"size":179,"mtime":1648642748000,"results":"19","hashOfConfig":"20"},{"size":666,"mtime":1651189793582,"results":"21","hashOfConfig":"20"},{"size":557,"mtime":1653313830830,"results":"22","hashOfConfig":"20"},{"size":1234,"mtime":1651247987856,"results":"23","hashOfConfig":"20"},{"size":501,"mtime":1651159312836,"results":"24","hashOfConfig":"20"},{"size":298,"mtime":1651150701258,"results":"25","hashOfConfig":"20"},{"size":1909,"mtime":1652731747206,"results":"26","hashOfConfig":"20"},{"size":331,"mtime":1651248477479,"results":"27","hashOfConfig":"20"},{"size":209,"mtime":1651150179720,"results":"28","hashOfConfig":"20"},{"size":881,"mtime":1651198019703,"results":"29","hashOfConfig":"20"},{"size":1174,"mtime":1651198703179,"results":"30","hashOfConfig":"20"},{"size":325,"mtime":1651226537326,"results":"31","hashOfConfig":"20"},{"size":3016,"mtime":1652814861608,"results":"32","hashOfConfig":"20"},{"size":773,"mtime":1651188726578,"results":"33","hashOfConfig":"20"},{"size":2909,"mtime":1652745407252,"results":"34","hashOfConfig":"20"},{"size":227,"mtime":1652745317333,"results":"35","hashOfConfig":"20"},{"size":635,"mtime":1651198823067,"results":"36","hashOfConfig":"20"},{"size":3720,"mtime":1652743802519,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"19p1vsj",{"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},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"70","messages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\index.js",[],["76","77"],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\App.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Layout\\Header.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Layout\\HeaderButton.js",["78"],"import React,{useContext , useEffect, useState} from 'react';\r\nimport CartIcon from \"../Cart/CartIcon\";\r\nimport classes from \"./HeaderButton.module.css\";\r\nimport CartContext from '../../Store/cart-context';\r\n\r\n\r\nconst HeaderButton = (props) => {\r\n const [buttonIsHighlighted, setButtonIsHighlighted] = useState(false);\r\n const cartCtx = useContext(CartContext);\r\n\r\n const {items}=cartCtx;\r\n\r\n const numberOfCartItems = items.reduce((currentNumber, item) => {\r\n return currentNumber + item.amount;\r\n } , 0 );\r\n\r\n\r\n const buttonClasses = `${classes.button} ${buttonIsHighlighted ? classes.bump : ''}`;\r\n\r\n useEffect(() => {\r\n if(cartCtx.items.length === 0 ){\r\n return;\r\n }\r\n setButtonIsHighlighted(true);\r\n\r\n const timerHighligth = setTimeout(() => {\r\n setButtonIsHighlighted(false);\r\n }, 300);\r\n\r\n return () => {\r\n clearTimeout(timerHighligth);\r\n };\r\n },[items]);\r\n\r\n return (\r\n \r\n <button className={buttonClasses} onClick={props.onAvailableCart}>\r\n <span className={classes.icon}>\r\n <CartIcon />\r\n </span>\r\n <span>Your Cart</span>\r\n <span className={classes.badge}>{numberOfCartItems}</span>\r\n </button>\r\n );\r\n};\r\n\r\nexport default HeaderButton;\r\n\r\n","F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\CartIcon.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\Meals.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\AvailableMeals.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealsSummary.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Card.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealItem\\MealItem.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Meal\\MealItem\\MealItemForm.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Input.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\Cart.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\UI\\Modal.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Store\\CartProvider.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Store\\cart-context.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\CartItem.js",[],"F:\\Programming\\Maximilian\\REACT\\Food-App-React\\src\\Components\\Cart\\Checkout.js",[],{"ruleId":"79","replacedBy":"80"},{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","severity":1,"message":"84","line":33,"column":5,"nodeType":"85","endLine":33,"endColumn":12,"suggestions":"86"},"no-native-reassign",["87"],"no-negated-in-lhs",["88"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'cartCtx.items.length'. Either include it or remove the dependency array.","ArrayExpression",["89"],"no-global-assign","no-unsafe-negation",{"desc":"90","fix":"91"},"Update the dependencies array to be: [cartCtx.items.length, items]",{"range":"92","text":"93"},[900,907],"[cartCtx.items.length, items]"]