-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 9.04 KB
/
.eslintcache
1
[{"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\index.js":"1","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\App.js":"2","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\reportWebVitals.js":"3","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Header.js":"4","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Home.js":"5","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Product.js":"6","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Checkout.js":"7","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Subtotal.js":"8","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\StateProvider.js":"9","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\reducer.js":"10","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\CheckoutProduct.js":"11","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Login.js":"12"},{"size":691,"mtime":1610607932050,"results":"13","hashOfConfig":"14"},{"size":672,"mtime":1611387070104,"results":"15","hashOfConfig":"14"},{"size":362,"mtime":499162500000,"results":"16","hashOfConfig":"14"},{"size":2384,"mtime":1611354320808,"results":"17","hashOfConfig":"14"},{"size":3138,"mtime":1610487997377,"results":"18","hashOfConfig":"14"},{"size":1336,"mtime":1610610127767,"results":"19","hashOfConfig":"14"},{"size":1294,"mtime":1611214119726,"results":"20","hashOfConfig":"14"},{"size":1096,"mtime":1610738587371,"results":"21","hashOfConfig":"14"},{"size":385,"mtime":1610607055732,"results":"22","hashOfConfig":"14"},{"size":1131,"mtime":1611388306331,"results":"23","hashOfConfig":"14"},{"size":1339,"mtime":1611221121392,"results":"24","hashOfConfig":"14"},{"size":1255,"mtime":1611400172745,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"z0l59f",{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"28"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"44","usedDeprecatedRules":"28"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"49","messages":"50","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"51","usedDeprecatedRules":"28"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\index.js",[],["54","55"],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\App.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\reportWebVitals.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Header.js",["56"],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Home.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Product.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Checkout.js",["57"],"import React from 'react';\r\nimport './Checkout.css';\r\nimport CheckoutProduct from './CheckoutProduct';\r\nimport { useStateValue } from './StateProvider';\r\nimport Subtotal from './Subtotal';\r\n\r\n\r\nfunction Checkout() {\r\n\r\n const [{basket}, dispatch] = useStateValue();\r\n\r\n return <div className='checkout'>\r\n <div className=\"checkout__left\">\r\n <img\r\n className='checkout__ad'\r\n src=\"https://images-na.ssl-images-amazon.com/images/G/02/UK_CCMP/TM/OCC_Amazon1._CB423492668_.jpg\"\r\n alt=\"ad-img\" />\r\n\r\n\r\n <div>\r\n <h2 className='checkout__title'>\r\n Your shopping basket\r\n </h2>\r\n\r\n {\r\n basket.map(item => (\r\n <CheckoutProduct\r\n key={item.id}\r\n id={item.id}\r\n title={item.title}\r\n image={item.image}\r\n price={item.price}\r\n rating={item.rating}\r\n />\r\n ))\r\n }\r\n </div>\r\n </div>\r\n\r\n\r\n <div className=\"checkout-right\">\r\n <Subtotal />\r\n </div>\r\n\r\n </div>\r\n}\r\n\r\nexport default Checkout\r\n","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Subtotal.js",["58"],"import React from 'react';\r\nimport './Subtotal.css';\r\nimport CurrencyFormat from 'react-currency-format';\r\nimport { useStateValue } from './StateProvider';\r\nimport { getBasketTotal } from './reducer';\r\n\r\n function Subtotal() {\r\n\r\n const [{ basket }, dispatch] = useStateValue();\r\n\r\n return (\r\n <div className='subtotal'>\r\n <CurrencyFormat\r\n renderText={(value) => (\r\n <>\r\n <p>\r\n Subtotal ({basket?.length} items): <strong>{value}</strong>\r\n </p>\r\n <small className='subtotal__gift'>\r\n <input type=\"checkbox\"/> This order contains a gift\r\n </small>\r\n </>\r\n )}\r\n decimalScale={2}\r\n value={getBasketTotal(basket)}\r\n displayType={'text'}\r\n thousandSeparator={true}\r\n prefix={'$'}\r\n />\r\n\r\n <button>Proceed to Checkout</button>\r\n </div>\r\n );\r\n}\r\n\r\n\r\nexport default Subtotal;","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\StateProvider.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\reducer.js",[],"C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\CheckoutProduct.js",["59"],"import React from 'react';\r\nimport './CheckoutProduct.css';\r\nimport { useStateValue } from './StateProvider';\r\n\r\nfunction CheckoutProduct({id, image, title, price, rating}) {\r\n\r\n const [{basket}, dispatch] = useStateValue();\r\n\r\n const removeFromBasket = () => {\r\n // remove the item from the basket\r\n dispatch({\r\n type: 'REMOVE_FROM_BASKET',\r\n id: id\r\n })\r\n }\r\n\r\n return (\r\n <div className='checkoutProduct'>\r\n <img className='checkoutProduct__image' src={image} alt=\"product img\"/>\r\n\r\n <div className=\"checkoutProduct__info\">\r\n\r\n <p className=\"checkoutProduct__title\">\r\n {title}\r\n </p>\r\n\r\n <p className=\"checkoutProduct__price\">\r\n <small>$</small>\r\n <strong>{price}</strong>\r\n </p>\r\n\r\n\r\n <div className=\"checkoutProduct__rating\">\r\n {\r\n Array(rating).fill()\r\n .map( (_, i) => (\r\n <p key={i} className='star'>🌟</p>\r\n ))}\r\n </div>\r\n <button onClick={removeFromBasket}>Remove from basket</button>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default CheckoutProduct\r\n","C:\\Users\\ogunmolawm\\source\\react\\amazon-clone-react\\src\\Login.js",[],{"ruleId":"60","replacedBy":"61"},{"ruleId":"62","replacedBy":"63"},{"ruleId":"64","severity":1,"message":"65","line":10,"column":24,"nodeType":"66","messageId":"67","endLine":10,"endColumn":32},{"ruleId":"64","severity":1,"message":"65","line":10,"column":21,"nodeType":"66","messageId":"67","endLine":10,"endColumn":29},{"ruleId":"64","severity":1,"message":"65","line":9,"column":25,"nodeType":"66","messageId":"67","endLine":9,"endColumn":33},{"ruleId":"64","severity":1,"message":"68","line":7,"column":13,"nodeType":"66","messageId":"67","endLine":7,"endColumn":19},"no-native-reassign",["69"],"no-negated-in-lhs",["70"],"no-unused-vars","'dispatch' is assigned a value but never used.","Identifier","unusedVar","'basket' is assigned a value but never used.","no-global-assign","no-unsafe-negation"]