-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.14 KB
/
.eslintcache
1
[{"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\index.js":"1","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\App.js":"2","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Layout\\Header.js":"3","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Layout\\HeaderCartButton.js":"4","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\CartIcon.js":"5","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\Meals.js":"6","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealsSummary.js":"7","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\AvailableMeals.js":"8","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Card.js":"9","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealItem\\MealItem.js":"10","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealItem\\MealItemForm.js":"11","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Input.js":"12","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\Cart.js":"13","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Modal.js":"14","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\store\\CartProvider.js":"15","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\store\\cart-context.js":"16","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\CartItem.js":"17","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\Checkout.js":"18"},{"size":142,"mtime":1679098036427,"results":"19","hashOfConfig":"20"},{"size":664,"mtime":1679059708340,"results":"21","hashOfConfig":"20"},{"size":567,"mtime":1679000998892,"results":"22","hashOfConfig":"20"},{"size":1148,"mtime":1679097723518,"results":"23","hashOfConfig":"20"},{"size":501,"mtime":1678920937792,"results":"24","hashOfConfig":"20"},{"size":264,"mtime":1678922707619,"results":"25","hashOfConfig":"20"},{"size":578,"mtime":1678921895542,"results":"26","hashOfConfig":"20"},{"size":2480,"mtime":1681324723442,"results":"27","hashOfConfig":"20"},{"size":193,"mtime":1678988204686,"results":"28","hashOfConfig":"20"},{"size":866,"mtime":1679071265056,"results":"29","hashOfConfig":"20"},{"size":1216,"mtime":1679070651418,"results":"30","hashOfConfig":"20"},{"size":347,"mtime":1679097992277,"results":"31","hashOfConfig":"20"},{"size":2958,"mtime":1682199460875,"results":"32","hashOfConfig":"20"},{"size":887,"mtime":1679001658465,"results":"33","hashOfConfig":"20"},{"size":2588,"mtime":1682199373726,"results":"34","hashOfConfig":"20"},{"size":226,"mtime":1682199075470,"results":"35","hashOfConfig":"20"},{"size":610,"mtime":1679088456228,"results":"36","hashOfConfig":"20"},{"size":3482,"mtime":1682197151421,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"n1ferl",{"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":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"47","messages":"48","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"49","messages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"51","messages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"53","messages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"57","messages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"59","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},{"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},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\index.js",[],["76","77"],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\App.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Layout\\Header.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Layout\\HeaderCartButton.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\CartIcon.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\Meals.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealsSummary.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\AvailableMeals.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Card.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealItem\\MealItem.js",["78"],"import React, { useContext } from \"react\";\r\nimport MealItemForm from \"./MealItemForm\";\r\nimport CartContext from \"../../../store/cart-context\";\r\n\r\nimport classes from \"./MealItem.module.css\";\r\n\r\nconst MealItem = (props) => {\r\n const cartCtx = useContext(CartContext);\r\n const price = `$${props.price.toFixed(2)}`;\r\n\r\n const addToCartHandler = (amount) => {\r\n cartCtx.addItem({\r\n id: props.id,\r\n name: props.name,\r\n amount: amount,\r\n price: props.price,\r\n });\r\n };\r\n\r\n return (\r\n <li className={classes.meal}>\r\n <div>\r\n <h3>{props.name}</h3>\r\n <div className={classes.description}>{props.description}</div>\r\n <div className={classes.price}>{props.price}</div>\r\n </div>\r\n <div>\r\n <MealItemForm onAddToCart={addToCartHandler} />\r\n </div>\r\n </li>\r\n );\r\n};\r\n\r\nexport default MealItem;\r\n","D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Meals\\MealItem\\MealItemForm.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Input.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\Cart.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\UI\\Modal.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\store\\CartProvider.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\store\\cart-context.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\CartItem.js",[],"D:\\Gaga\\React-Udemy_Max\\food-order-app\\src\\components\\Cart\\Checkout.js",[],{"ruleId":"79","replacedBy":"80"},{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","severity":1,"message":"84","line":9,"column":9,"nodeType":"85","messageId":"86","endLine":9,"endColumn":14},"no-native-reassign",["87"],"no-negated-in-lhs",["88"],"no-unused-vars","'price' is assigned a value but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation"]