-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 11 KB
/
.eslintcache
1
[{"C:\\React project files\\shopping-cart\\src\\index.js":"1","C:\\React project files\\shopping-cart\\src\\web.route.js":"2","C:\\React project files\\shopping-cart\\src\\flux\\store\\store.js":"3","C:\\React project files\\shopping-cart\\src\\components\\Products\\Products.jsx":"4","C:\\React project files\\shopping-cart\\src\\flux\\reducer\\rootReducer.js":"5","C:\\React project files\\shopping-cart\\src\\components\\SignIn\\Signin.jsx":"6","C:\\React project files\\shopping-cart\\src\\components\\Register\\Register.jsx":"7","C:\\React project files\\shopping-cart\\src\\container\\Home\\Home.jsx":"8","C:\\React project files\\shopping-cart\\src\\flux\\actions\\buynow.js":"9","C:\\React project files\\shopping-cart\\src\\components\\common\\Footer.jsx":"10","C:\\React project files\\shopping-cart\\src\\flux\\reducer\\BuyNow.js":"11","C:\\React project files\\shopping-cart\\src\\components\\common\\Header.jsx":"12","C:\\React project files\\shopping-cart\\src\\container\\Home\\Carousel.jsx":"13","C:\\React project files\\shopping-cart\\src\\flux\\actions\\addItem.js":"14","C:\\React project files\\shopping-cart\\src\\flux\\actions\\removeItem.js":"15","C:\\React project files\\shopping-cart\\src\\config\\constant.js":"16"},{"size":330,"mtime":1612126296164,"results":"17","hashOfConfig":"18"},{"size":1109,"mtime":1612109359157,"results":"19","hashOfConfig":"18"},{"size":155,"mtime":1612126296162,"results":"20","hashOfConfig":"18"},{"size":6524,"mtime":1612602755086,"results":"21","hashOfConfig":"18"},{"size":235,"mtime":1612424898296,"results":"22","hashOfConfig":"18"},{"size":3622,"mtime":1612602076416,"results":"23","hashOfConfig":"18"},{"size":4792,"mtime":1612601879007,"results":"24","hashOfConfig":"18"},{"size":964,"mtime":1612424898292,"results":"25","hashOfConfig":"18"},{"size":144,"mtime":1612260985230,"results":"26","hashOfConfig":"18"},{"size":402,"mtime":1612096486065,"results":"27","hashOfConfig":"18"},{"size":2759,"mtime":1612535972813,"results":"28","hashOfConfig":"18"},{"size":11942,"mtime":1612606314637,"results":"29","hashOfConfig":"18"},{"size":3036,"mtime":1612424898291,"results":"30","hashOfConfig":"18"},{"size":168,"mtime":1612424898293,"results":"31","hashOfConfig":"18"},{"size":177,"mtime":1612424898293,"results":"32","hashOfConfig":"18"},{"size":132,"mtime":1612424898289,"results":"33","hashOfConfig":"18"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"1fdpxh3",{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"47","messages":"48","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"57","usedDeprecatedRules":"36"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"C:\\React project files\\shopping-cart\\src\\index.js",[],["68","69"],"C:\\React project files\\shopping-cart\\src\\web.route.js",[],"C:\\React project files\\shopping-cart\\src\\flux\\store\\store.js",[],"C:\\React project files\\shopping-cart\\src\\components\\Products\\Products.jsx",["70"],"C:\\React project files\\shopping-cart\\src\\flux\\reducer\\rootReducer.js",[],"C:\\React project files\\shopping-cart\\src\\components\\SignIn\\Signin.jsx",["71","72","73"],"C:\\React project files\\shopping-cart\\src\\components\\Register\\Register.jsx",["74","75"],"C:\\React project files\\shopping-cart\\src\\container\\Home\\Home.jsx",[],"C:\\React project files\\shopping-cart\\src\\flux\\actions\\buynow.js",[],"C:\\React project files\\shopping-cart\\src\\components\\common\\Footer.jsx",[],"C:\\React project files\\shopping-cart\\src\\flux\\reducer\\BuyNow.js",["76","77"],"import { CompareArrowsOutlined } from '@material-ui/icons';\r\nimport C from '../../config/constant';\r\n\r\nconst initialState = {\r\n count: 0,\r\n details: []\r\n}\r\n\r\n\r\nconst buynow = (state = initialState, action) => {\r\n let data = [...state.details];\r\n let duplicateItems = []\r\n let totalAmt = 0\r\n let index = 0;\r\n let count = state.count;\r\n switch (action.type) {\r\n case C.BUY_NOW:\r\n for (let i = 0; i < data.length; i++) {\r\n if (data[i].id === action.payload.id) {\r\n data[i].count = data[i].count + 1\r\n duplicateItems.push(data[i])\r\n }\r\n }\r\n if (!duplicateItems.length) {\r\n data.push(action.payload)\r\n }\r\n data.forEach(val => {\r\n val.totalPrice = parseInt(val.price) * val.count\r\n })\r\n data.forEach(item => totalAmt = totalAmt + item.totalPrice)\r\n return {\r\n ...state,\r\n count: count + 1,\r\n details: data,\r\n totalAmt\r\n }\r\n case C.ADD_ITEM:\r\n data.forEach((item, i) => {\r\n if (data[i].id === action.payload.id) {\r\n data[i].count = data[i].count + 1\r\n data[i].totalPrice = data[i].count * data[i].price\r\n }\r\n })\r\n data.forEach(item => {\r\n totalAmt = totalAmt + item.totalPrice\r\n }\r\n )\r\n\r\n return {\r\n ...state,\r\n count: count + 1,\r\n details: data,\r\n totalAmt\r\n }\r\n case C.REMOVE_ITEM:\r\n if (count >1) {\r\n data.forEach((item, i) => {\r\n if (item.id === action.payload.id) {\r\n if (item.count > 1) {\r\n item.count = item.count - 1\r\n item.totalPrice = item.count * item.price\r\n } else if(item.count===1){\r\n data.splice(i,1);\r\n }\r\n }\r\n })\r\n data.forEach(item => {\r\n totalAmt = totalAmt + item.totalPrice\r\n })\r\n return {\r\n ...state,\r\n count: count - 1,\r\n details: data,\r\n totalAmt\r\n }\r\n }\r\n return {\r\n ...state,\r\n count: count - 1,\r\n details: [],\r\n totalAmt\r\n }\r\n\r\n default:\r\n return {\r\n ...state\r\n }\r\n }\r\n}\r\n\r\nexport default buynow;","C:\\React project files\\shopping-cart\\src\\components\\common\\Header.jsx",[],"C:\\React project files\\shopping-cart\\src\\container\\Home\\Carousel.jsx",[],"C:\\React project files\\shopping-cart\\src\\flux\\actions\\addItem.js",[],"C:\\React project files\\shopping-cart\\src\\flux\\actions\\removeItem.js",[],"C:\\React project files\\shopping-cart\\src\\config\\constant.js",[],{"ruleId":"78","replacedBy":"79"},{"ruleId":"80","replacedBy":"81"},{"ruleId":"82","severity":1,"message":"83","line":53,"column":15,"nodeType":"84","messageId":"85","endLine":53,"endColumn":22},{"ruleId":"82","severity":1,"message":"86","line":1,"column":17,"nodeType":"84","messageId":"85","endLine":1,"endColumn":25},{"ruleId":"87","severity":1,"message":"88","line":17,"column":35,"nodeType":"89","messageId":"90","endLine":17,"endColumn":36,"suggestions":"91"},{"ruleId":"87","severity":1,"message":"88","line":17,"column":50,"nodeType":"89","messageId":"90","endLine":17,"endColumn":51,"suggestions":"92"},{"ruleId":"87","severity":1,"message":"88","line":59,"column":35,"nodeType":"89","messageId":"90","endLine":59,"endColumn":36,"suggestions":"93"},{"ruleId":"87","severity":1,"message":"88","line":59,"column":50,"nodeType":"89","messageId":"90","endLine":59,"endColumn":51,"suggestions":"94"},{"ruleId":"82","severity":1,"message":"95","line":1,"column":10,"nodeType":"84","messageId":"85","endLine":1,"endColumn":31},{"ruleId":"82","severity":1,"message":"96","line":14,"column":9,"nodeType":"84","messageId":"85","endLine":14,"endColumn":14},"no-native-reassign",["97"],"no-negated-in-lhs",["98"],"no-unused-vars","'hrStyle' is assigned a value but never used.","Identifier","unusedVar","'useState' is defined but never used.","no-useless-escape","Unnecessary escape character: \\..","Literal","unnecessaryEscape",["99","100"],["101","102"],["103","104"],["105","106"],"'CompareArrowsOutlined' is defined but never used.","'index' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"messageId":"107","fix":"108","desc":"109"},{"messageId":"110","fix":"111","desc":"112"},{"messageId":"107","fix":"113","desc":"109"},{"messageId":"110","fix":"114","desc":"112"},{"messageId":"107","fix":"115","desc":"109"},{"messageId":"110","fix":"116","desc":"112"},{"messageId":"107","fix":"117","desc":"109"},{"messageId":"110","fix":"118","desc":"112"},"removeEscape",{"range":"119","text":"120"},"Remove the `\\`. This maintains the current functionality.","escapeBackslash",{"range":"121","text":"122"},"Replace the `\\` with `\\\\` to include the actual backslash character.",{"range":"123","text":"120"},{"range":"124","text":"122"},{"range":"125","text":"120"},{"range":"126","text":"122"},{"range":"127","text":"120"},{"range":"128","text":"122"},[525,526],"",[525,525],"\\",[540,541],[540,540],[2350,2351],[2350,2350],[2365,2366],[2365,2365]]