-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 9.58 KB
/
.eslintcache
1
[{"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\index.js":"1","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\App.js":"2","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Layout\\Header.js":"3","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Layout\\HeaderCartButton.js":"4","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\CartIcon.js":"5","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\Meals.js":"6","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\AvailableMeals.js":"7","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealsSummary.js":"8","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Card.js":"9","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealItem\\MealItem.js":"10","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealItem\\MealItemForm.js":"11","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Input.js":"12","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\Cart.js":"13","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Modal.js":"14","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\store\\CartProvider.js":"15","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\store\\cart-context.js":"16","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\CartItem.js":"17"},{"size":142,"mtime":1616594953000,"results":"18","hashOfConfig":"19"},{"size":671,"mtime":1625429034601,"results":"20","hashOfConfig":"19"},{"size":562,"mtime":1625490021766,"results":"21","hashOfConfig":"19"},{"size":1579,"mtime":1625505877728,"results":"22","hashOfConfig":"19"},{"size":525,"mtime":1624987324630,"results":"23","hashOfConfig":"19"},{"size":256,"mtime":1625489997518,"results":"24","hashOfConfig":"19"},{"size":1093,"mtime":1625490001665,"results":"25","hashOfConfig":"19"},{"size":548,"mtime":1625489993105,"results":"26","hashOfConfig":"19"},{"size":205,"mtime":1624991046455,"results":"27","hashOfConfig":"19"},{"size":863,"mtime":1625429041108,"results":"28","hashOfConfig":"19"},{"size":1244,"mtime":1625429050189,"results":"29","hashOfConfig":"19"},{"size":364,"mtime":1625429058094,"results":"30","hashOfConfig":"19"},{"size":1426,"mtime":1625490041533,"results":"31","hashOfConfig":"19"},{"size":1078,"mtime":1625108247303,"results":"32","hashOfConfig":"19"},{"size":3581,"mtime":1625500205874,"results":"33","hashOfConfig":"19"},{"size":195,"mtime":1625489987209,"results":"34","hashOfConfig":"19"},{"size":628,"mtime":1625490033910,"results":"35","hashOfConfig":"19"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},"1tibblk",{"filePath":"39","messages":"40","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"38"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"56","usedDeprecatedRules":"38"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"61","usedDeprecatedRules":"38"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"38"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\index.js",[],["74","75"],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\App.js",["76"],"import { Fragment, useState } from \"react\";\nimport Header from \"./components/Layout/Header\";\nimport Meals from \"./components/Meals/Meals\";\nimport Cart from \"./components/Cart/Cart\";\nimport CartProvider from \"./store/CartProvider\";\nfunction App() {\n const [cartIsShown, setCartIsShown] = useState(false);\n const showCartHandler = () => {\n setCartIsShown(true);\n };\n const hideCartHandler = () => {\n setCartIsShown(false);\n };\n\n return (\n <CartProvider>\n {cartIsShown && <Cart onClose={hideCartHandler} />}\n <Header onShowCart={showCartHandler}></Header>\n <main>\n <Meals />\n </main>\n </CartProvider>\n );\n}\n\nexport default App;\n","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Layout\\Header.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Layout\\HeaderCartButton.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\CartIcon.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\Meals.js",["77"],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\AvailableMeals.js",["78"],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealsSummary.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Card.js",["79"],"import { isClassExpression } from \"typescript\";\r\nimport classes from \"./Card.module.css\";\r\n\r\nconst Card =(props)=>{\r\n return <div className={classes.card}> {props.children}</div>\r\n}\r\n\r\nexport default Card;","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealItem\\MealItem.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Meals\\MealItem\\MealItemForm.js",["80"],"import { useRef, useState, useContext } from \"react\";\r\nimport classes from \"./MealItemForm.module.css\";\r\nimport Input from \"../../UI/Input\";\r\n\r\nconst MealItemForm = (props) => {\r\n const [amountIsValid, setAmountIsValid] = useState(true);\r\n const amountInputRef = useRef();\r\n const submitHandler = (event) => {\r\n event.preventDefault();\r\n const enteredAmount = amountInputRef.current.value;\r\n const enteredAmountNumber = +enteredAmount;\r\n if (\r\n enteredAmount.trim().length === 0 ||\r\n enteredAmountNumber < 1 ||\r\n enteredAmountNumber > 5\r\n ) {\r\n setAmountIsValid(false);\r\n return;\r\n } else {\r\n props.onAddToCart(enteredAmountNumber);\r\n }\r\n };\r\n return (\r\n <form className={classes.form} onSubmit={submitHandler}>\r\n <Input\r\n ref={amountInputRef}\r\n label=\"Amount\"\r\n input={{\r\n id: \"amount_\" + props.id, // to make sure the id for different input is different\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 valid value [1-5]</p>}\r\n </form>\r\n );\r\n};\r\nexport default MealItemForm;\r\n","C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Input.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\Cart.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\UI\\Modal.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\store\\CartProvider.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\store\\cart-context.js",[],"C:\\Users\\khoit\\Desktop\\React- Udemy\\Food-App\\src\\components\\Cart\\CartItem.js",[],{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","replacedBy":"84"},{"ruleId":"85","severity":1,"message":"86","line":1,"column":10,"nodeType":"87","messageId":"88","endLine":1,"endColumn":18},{"ruleId":"85","severity":1,"message":"89","line":3,"column":8,"nodeType":"87","messageId":"88","endLine":3,"endColumn":20},{"ruleId":"85","severity":1,"message":"90","line":4,"column":8,"nodeType":"87","messageId":"88","endLine":4,"endColumn":13},{"ruleId":"85","severity":1,"message":"91","line":1,"column":10,"nodeType":"87","messageId":"88","endLine":1,"endColumn":27},{"ruleId":"85","severity":1,"message":"92","line":1,"column":28,"nodeType":"87","messageId":"88","endLine":1,"endColumn":38},"no-native-reassign",["93"],"no-negated-in-lhs",["94"],"no-unused-vars","'Fragment' is defined but never used.","Identifier","unusedVar","'MealsSummary' is defined but never used.","'Meals' is defined but never used.","'isClassExpression' is defined but never used.","'useContext' is defined but never used.","no-global-assign","no-unsafe-negation"]