-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 13.5 KB
/
.eslintcache
1
[{"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/index.js":"1","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/App.js":"2","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/reportWebVitals.js":"3","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Navbar/Navbar.jsx":"4","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/Homepage.jsx":"5","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageBrand.jsx":"6","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageLatest.jsx":"7","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageTasteFilters.jsx":"8","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/AddRecipe/AddRecipe.jsx":"9","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/ScrollToTop.jsx":"10","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/RecipeDetails/RecipeDetails.jsx":"11","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageRecipeList.jsx":"12","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageRecipeCard.jsx":"13","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Login/Login.jsx":"14","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/PersonalSpace/PersonalSpace.jsx":"15","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/index.js":"16","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/AddForm.jsx":"17","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/EditForm.jsx":"18","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/DeleteForm.jsx":"19","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userActions.js":"20","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userTypes.js":"21","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/store.js":"22","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userReducer.js":"23","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/PrivateRoute.jsx":"24","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/PersonalSpace/AdminSpace.jsx":"25","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/AddUser/AddUser.jsx":"26"},{"size":761,"mtime":1612649502131,"results":"27","hashOfConfig":"28"},{"size":2025,"mtime":1612649502111,"results":"29","hashOfConfig":"28"},{"size":362,"mtime":1612345372444,"results":"30","hashOfConfig":"28"},{"size":1247,"mtime":1612649502127,"results":"31","hashOfConfig":"28"},{"size":1332,"mtime":1612649502127,"results":"32","hashOfConfig":"28"},{"size":226,"mtime":1612649502127,"results":"33","hashOfConfig":"28"},{"size":881,"mtime":1612649502127,"results":"34","hashOfConfig":"28"},{"size":520,"mtime":1612649502127,"results":"35","hashOfConfig":"28"},{"size":235,"mtime":1612649502127,"results":"36","hashOfConfig":"28"},{"size":258,"mtime":1612649502131,"results":"37","hashOfConfig":"28"},{"size":2837,"mtime":1612649502127,"results":"38","hashOfConfig":"28"},{"size":542,"mtime":1612649502127,"results":"39","hashOfConfig":"28"},{"size":1639,"mtime":1612649502127,"results":"40","hashOfConfig":"28"},{"size":2973,"mtime":1612649502127,"results":"41","hashOfConfig":"28"},{"size":2271,"mtime":1612649502127,"results":"42","hashOfConfig":"28"},{"size":36,"mtime":1612649502131,"results":"43","hashOfConfig":"28"},{"size":5554,"mtime":1612649502131,"results":"44","hashOfConfig":"28"},{"size":8047,"mtime":1612649502131,"results":"45","hashOfConfig":"28"},{"size":1368,"mtime":1612649502131,"results":"46","hashOfConfig":"28"},{"size":1417,"mtime":1612649502131,"results":"47","hashOfConfig":"28"},{"size":411,"mtime":1612649502131,"results":"48","hashOfConfig":"28"},{"size":391,"mtime":1612649502131,"results":"49","hashOfConfig":"28"},{"size":1077,"mtime":1612649502131,"results":"50","hashOfConfig":"28"},{"size":835,"mtime":1612649502131,"results":"51","hashOfConfig":"28"},{"size":2735,"mtime":1613037971587,"results":"52","hashOfConfig":"28"},{"size":2866,"mtime":1612649502127,"results":"53","hashOfConfig":"28"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"1ku90ly",{"filePath":"57","messages":"58","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"59","usedDeprecatedRules":"56"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/index.js",[],["108","109"],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/App.js",["110"],"import React, { useEffect } from \"react\";\nimport { Route, Switch } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport PropTypes from \"prop-types\";\nimport { fetchUserAccess } from \"./redux\";\n\nimport PrivateRoute from \"./components/globals/PrivateRoute\";\nimport Login from \"./components/Login/Login\";\nimport Navbar from \"./components/Navbar/Navbar\";\nimport Homepage from \"./components/Homepage/Homepage\";\nimport AddRecipe from \"./components/AddRecipe/AddRecipe\";\nimport RecipeDetails from \"./components/RecipeDetails/RecipeDetails\";\nimport PersonalSpace from \"./components/PersonalSpace/PersonalSpace\";\nimport AdminSpace from \"./components/PersonalSpace/AdminSpace\";\nimport AddUser from \"./components/AddUser/AddUser\";\n\nimport \"./assets/css/styles.css\";\n\nfunction App({ user, handleUserAccess }) {\n\tuseEffect(() => {\n\t\tif (user.token.length !== 0) {\n\t\t\thandleUserAccess(user.token);\n\t\t}\n\t}, [user.token]);\n\n\treturn (\n\t\t<div>\n\t\t\t{user.isAuthenticated && <Navbar />}\n\n\t\t\t<Switch>\n\t\t\t\t<Route exact path=\"/\" component={Login} />\n\t\t\t\t<PrivateRoute exact path=\"/private\" component={Homepage} />\n\t\t\t\t<PrivateRoute exact path=\"/private/add-recipe\" component={AddRecipe} />\n\t\t\t\t<PrivateRoute exact path=\"/private/add-user\" component={AddUser} />\n\t\t\t\t<PrivateRoute\n\t\t\t\t\texact\n\t\t\t\t\tpath=\"/private/recipe/:idRecipe\"\n\t\t\t\t\tcomponent={RecipeDetails}\n\t\t\t\t/>\n\n\t\t\t\t<PrivateRoute\n\t\t\t\t\texact\n\t\t\t\t\tpath=\"/private/personal\"\n\t\t\t\t\tcomponent={user.profile.admin !== 1 ? PersonalSpace : AdminSpace}\n\t\t\t\t/>\n\t\t\t</Switch>\n\t\t</div>\n\t);\n}\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tuser: state.user,\n\t};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n\treturn {\n\t\thandleUserAccess: (token) => dispatch(fetchUserAccess(token)),\n\t};\n};\n\nApp.propTypes = {\n\thandleUserAccess: PropTypes.func.isRequired,\n\tuser: PropTypes.shape({\n\t\ttoken: PropTypes.string.isRequired,\n\t\tprofile: PropTypes.shape({\n\t\t\tadmin: PropTypes.number.isRequired,\n\t\t}).isRequired,\n\t}).isRequired,\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(App);\n","/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/reportWebVitals.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Navbar/Navbar.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/Homepage.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageBrand.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageLatest.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageTasteFilters.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/AddRecipe/AddRecipe.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/ScrollToTop.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/RecipeDetails/RecipeDetails.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageRecipeList.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Homepage/HomepageRecipeCard.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/Login/Login.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/PersonalSpace/PersonalSpace.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/index.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/AddForm.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/EditForm.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/DeleteForm.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userActions.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userTypes.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/store.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/redux/user/userReducer.js",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/globals/PrivateRoute.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/PersonalSpace/AdminSpace.jsx",[],"/home/stella/wild_20-21/checkpoints/sweetcook/sweetcook-front/src/components/AddUser/AddUser.jsx",[],{"ruleId":"111","replacedBy":"112"},{"ruleId":"113","replacedBy":"114"},{"ruleId":"115","severity":1,"message":"116","line":24,"column":5,"nodeType":"117","endLine":24,"endColumn":17,"suggestions":"118"},"no-native-reassign",["119"],"no-negated-in-lhs",["120"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'handleUserAccess'. Either include it or remove the dependency array. If 'handleUserAccess' changes too often, find the parent component that defines it and wrap that definition in useCallback.","ArrayExpression",["121"],"no-global-assign","no-unsafe-negation",{"desc":"122","fix":"123"},"Update the dependencies array to be: [handleUserAccess, user.token]",{"range":"124","text":"125"},[909,921],"[handleUserAccess, user.token]"]