-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 10.9 KB
/
.eslintcache
1
[{"/home/anthony/code/meal-app/react-app/src/index.js":"1","/home/anthony/code/meal-app/react-app/src/reportWebVitals.js":"2","/home/anthony/code/meal-app/react-app/src/App.js":"3","/home/anthony/code/meal-app/react-app/src/redux/reducer.js":"4","/home/anthony/code/meal-app/react-app/src/components/FileReader.js":"5","/home/anthony/code/meal-app/react-app/src/components/UserInput.js":"6","/home/anthony/code/meal-app/react-app/src/components/Meals/Meals.js":"7","/home/anthony/code/meal-app/react-app/src/components/Meals/Meal.js":"8","/home/anthony/code/meal-app/react-app/src/redux/actionCreator.js":"9","/home/anthony/code/meal-app/react-app/src/containers/FoodCards.js":"10","/home/anthony/code/meal-app/react-app/src/redux/foodsReducer.js":"11","/home/anthony/code/meal-app/react-app/src/components/Prediction.js":"12","/home/anthony/code/meal-app/react-app/src/components/Food/FoodCard.js":"13","/home/anthony/code/meal-app/react-app/src/components/Food/FoodPage.js":"14","/home/anthony/code/meal-app/react-app/src/redux/usersReducer.js":"15","/home/anthony/code/meal-app/react-app/src/components/Login.js":"16","/home/anthony/code/meal-app/react-app/src/redux/mealsReducer.js":"17","/home/anthony/code/meal-app/react-app/src/components/Meals/MealPage.js":"18","/home/anthony/code/meal-app/react-app/src/components/Filters.js":"19","/home/anthony/code/meal-app/react-app/src/containers/MealsContainer.js":"20","/home/anthony/code/meal-app/react-app/src/containers/UsersContainer.js":"21","/home/anthony/code/meal-app/react-app/src/components/Tables.js":"22","/home/anthony/code/meal-app/react-app/src/apiRoot.js":"23"},{"size":1319,"mtime":1609269823433,"results":"24","hashOfConfig":"25"},{"size":362,"mtime":1607400466273,"results":"26","hashOfConfig":"25"},{"size":3759,"mtime":1614214521499,"results":"27","hashOfConfig":"25"},{"size":634,"mtime":1608690915374,"results":"28","hashOfConfig":"25"},{"size":1305,"mtime":1610844537480,"results":"29","hashOfConfig":"25"},{"size":2932,"mtime":1614216760339,"results":"30","hashOfConfig":"25"},{"size":500,"mtime":1611772553996,"results":"31","hashOfConfig":"25"},{"size":821,"mtime":1614216254424,"results":"32","hashOfConfig":"25"},{"size":4891,"mtime":1614452254938,"results":"33","hashOfConfig":"25"},{"size":1985,"mtime":1614214891584,"results":"34","hashOfConfig":"25"},{"size":1050,"mtime":1611529940754,"results":"35","hashOfConfig":"25"},{"size":417,"mtime":1609907968496,"results":"36","hashOfConfig":"25"},{"size":633,"mtime":1614215489278,"results":"37","hashOfConfig":"25"},{"size":2321,"mtime":1613848385178,"results":"38","hashOfConfig":"25"},{"size":995,"mtime":1614453038954,"results":"39","hashOfConfig":"25"},{"size":2243,"mtime":1614214540780,"results":"40","hashOfConfig":"25"},{"size":1087,"mtime":1611267681105,"results":"41","hashOfConfig":"25"},{"size":1858,"mtime":1613848538568,"results":"42","hashOfConfig":"25"},{"size":843,"mtime":1611531344686,"results":"43","hashOfConfig":"25"},{"size":1511,"mtime":1613795362952,"results":"44","hashOfConfig":"25"},{"size":937,"mtime":1613701099330,"results":"45","hashOfConfig":"25"},{"size":2360,"mtime":1614214609538,"results":"46","hashOfConfig":"25"},{"size":205,"mtime":1614451467293,"results":"47","hashOfConfig":"25"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},"1ndwq12",{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"63"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"66"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71","usedDeprecatedRules":"50"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},"/home/anthony/code/meal-app/react-app/src/index.js",[],["98","99"],"/home/anthony/code/meal-app/react-app/src/reportWebVitals.js",[],"/home/anthony/code/meal-app/react-app/src/App.js",[],"/home/anthony/code/meal-app/react-app/src/redux/reducer.js",[],"/home/anthony/code/meal-app/react-app/src/components/FileReader.js",[],"/home/anthony/code/meal-app/react-app/src/components/UserInput.js",[],"/home/anthony/code/meal-app/react-app/src/components/Meals/Meals.js",[],["100","101"],"/home/anthony/code/meal-app/react-app/src/components/Meals/Meal.js",[],["102","103"],"/home/anthony/code/meal-app/react-app/src/redux/actionCreator.js",[],"/home/anthony/code/meal-app/react-app/src/containers/FoodCards.js",["104"],"import { React, useEffect} from 'react'\n// import Card from 'react-bootstrap/Card'\nimport { connect } from 'react-redux'\n// import { compose } from 'redux'\nimport FoodCard from '../components/Food/FoodCard'\nimport Filter from '../components/Filters'\nimport { unsetForms } from '../redux/actionCreator'\n// import Spinner from 'react-bootstrap/Spinner'\n// import { Link } from 'react-router-dom'\n\n\n\n\n\n\nconst FoodCards = (props) => {\n // componentDidUpdate (){\n // console.log(this.state.foods)\n // }\n // console.log(this.props.foods)\n \n // for (const [name, value] of Object.entries(state.foods)) {\n // console.log(`${JSON.stringify(name)}:`)\n // }\n\n\n // const [toggle, setToggle] = useState(false);\n // moved the filter/toggle state to redux\n\n // console.log(props)\n\n // setToggle({toggle: !toggle})\n\n useEffect(() => {\n return () => props.unsetForms()\n }, [])\n\n \n \n const searchedFoods = props.foods.filter(food => {\n return food.name.toLowerCase().includes(props.search.toLowerCase())\n })\n const { history, location } = props\n\n\n \n const filteredFoods = () => {\n\n return props.calories ? searchedFoods.map( food => food).sort(function(a,b) {return a.calories - b.calories}) : searchedFoods\n \n }\n \n \n \n\n\n // console.log(filteredFoods)\n\n \n\n \n \n\n \n return (\n searchedFoods.length > 0 ? \n <div className=\"component\">\n <div className=\"card\"><Filter/>\n <button onClick={history.goBack}>Go Back!</button>\n </div>\n { location.state ? filteredFoods().map(food => <FoodCard key={food.id} {...food} mealId={location.state.id}/>) : filteredFoods().map(food => <FoodCard key={food.id} {...food}/>) }\n </div> : <> <h1>\"Not Found\"</h1> <button onClick={props.unsetForms}>Search Again</button></>\n ) \n}\n\nconst msp = (state) => ({\n foods: state.foods.foods,\n ...state.foods.filtersForm\n})\n\n\n \n \n export default connect(msp, { unsetForms })(FoodCards)","/home/anthony/code/meal-app/react-app/src/redux/foodsReducer.js",[],"/home/anthony/code/meal-app/react-app/src/components/Prediction.js",[],"/home/anthony/code/meal-app/react-app/src/components/Food/FoodCard.js",[],"/home/anthony/code/meal-app/react-app/src/components/Food/FoodPage.js",[],"/home/anthony/code/meal-app/react-app/src/redux/usersReducer.js",[],"/home/anthony/code/meal-app/react-app/src/components/Login.js",[],"/home/anthony/code/meal-app/react-app/src/redux/mealsReducer.js",[],"/home/anthony/code/meal-app/react-app/src/components/Meals/MealPage.js",[],"/home/anthony/code/meal-app/react-app/src/components/Filters.js",[],"/home/anthony/code/meal-app/react-app/src/containers/MealsContainer.js",[],"/home/anthony/code/meal-app/react-app/src/containers/UsersContainer.js",[],"/home/anthony/code/meal-app/react-app/src/components/Tables.js",[],"/home/anthony/code/meal-app/react-app/src/apiRoot.js",[],{"ruleId":"105","replacedBy":"106"},{"ruleId":"107","replacedBy":"108"},{"ruleId":"105","replacedBy":"109"},{"ruleId":"107","replacedBy":"110"},{"ruleId":"105","replacedBy":"111"},{"ruleId":"107","replacedBy":"112"},{"ruleId":"113","severity":1,"message":"114","line":36,"column":8,"nodeType":"115","endLine":36,"endColumn":10,"suggestions":"116"},"no-native-reassign",["117"],"no-negated-in-lhs",["118"],["117"],["118"],["117"],["118"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.","ArrayExpression",["119"],"no-global-assign","no-unsafe-negation",{"desc":"120","fix":"121"},"Update the dependencies array to be: [props]",{"range":"122","text":"123"},[902,904],"[props]"]