-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintcache
More file actions
1 lines (1 loc) · 33.8 KB
/
.eslintcache
File metadata and controls
1 lines (1 loc) · 33.8 KB
1
[{"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/index.js":"1","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/App.js":"2","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/store.js":"3","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/NavBar.js":"4","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Home.js":"5","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/About.js":"6","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Footer.js":"7","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/currentUser.js":"8","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/teams.js":"9","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/currentUser.js":"10","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/favorites.js":"11","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/loginForm.js":"12","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/favoriteForm.js":"13","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/signupForm.js":"14","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/teams.js":"15","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/signupForm.js":"16","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/loginForm.js":"17","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/favorites.js":"18","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/favoriteForm.js":"19","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/searchForm.js":"20","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/TeamsContainer.js":"21","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/FavoritesContainer.js":"22","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/MainContainer.js":"23","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Favorties/FavoriteCard.js":"24","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Users/Logout.js":"25","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/users.js":"26","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Teams/TeamCard.js":"27","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Users/Login.js":"28"},{"size":406,"mtime":1618158195631,"results":"29","hashOfConfig":"30"},{"size":1733,"mtime":1619718132530,"results":"31","hashOfConfig":"30"},{"size":682,"mtime":1614263949384,"results":"32","hashOfConfig":"30"},{"size":1053,"mtime":1620444172219,"results":"33","hashOfConfig":"30"},{"size":509,"mtime":1614722940234,"results":"34","hashOfConfig":"30"},{"size":145,"mtime":1616598956125,"results":"35","hashOfConfig":"30"},{"size":320,"mtime":1613169001294,"results":"36","hashOfConfig":"30"},{"size":2638,"mtime":1616602152099,"results":"37","hashOfConfig":"30"},{"size":1542,"mtime":1617935194813,"results":"38","hashOfConfig":"30"},{"size":226,"mtime":1614259027741,"results":"39","hashOfConfig":"30"},{"size":505,"mtime":1617850187861,"results":"40","hashOfConfig":"30"},{"size":312,"mtime":1614259056694,"results":"41","hashOfConfig":"30"},{"size":430,"mtime":1614264072982,"results":"42","hashOfConfig":"30"},{"size":400,"mtime":1614259373268,"results":"43","hashOfConfig":"30"},{"size":366,"mtime":1614832866050,"results":"44","hashOfConfig":"30"},{"size":247,"mtime":1614258874917,"results":"45","hashOfConfig":"30"},{"size":214,"mtime":1614258184840,"results":"46","hashOfConfig":"30"},{"size":2414,"mtime":1617906054563,"results":"47","hashOfConfig":"30"},{"size":295,"mtime":1614258958845,"results":"48","hashOfConfig":"30"},{"size":274,"mtime":1617934078331,"results":"49","hashOfConfig":"30"},{"size":1111,"mtime":1620428187598,"results":"50","hashOfConfig":"30"},{"size":944,"mtime":1620428317140,"results":"51","hashOfConfig":"30"},{"size":754,"mtime":1618064558055,"results":"52","hashOfConfig":"30"},{"size":924,"mtime":1620428870158,"results":"53","hashOfConfig":"30"},{"size":555,"mtime":1618157935975,"results":"54","hashOfConfig":"30"},{"size":0,"mtime":1616473395558,"results":"55","hashOfConfig":"30"},{"size":932,"mtime":1620428360578,"results":"56","hashOfConfig":"30"},{"size":1689,"mtime":1619622769127,"results":"57","hashOfConfig":"30"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},"y3r4so",{"filePath":"61","messages":"62","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"63","usedDeprecatedRules":"60"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"66","usedDeprecatedRules":"60"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"69","messages":"70","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71","usedDeprecatedRules":"60"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"76"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"79","usedDeprecatedRules":"60"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"82","usedDeprecatedRules":"60"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"85","usedDeprecatedRules":"60"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"88","usedDeprecatedRules":"60"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"91","usedDeprecatedRules":"60"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"94","usedDeprecatedRules":"60"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"97","usedDeprecatedRules":"60"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"100","usedDeprecatedRules":"60"},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"105","messages":"106","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"107","usedDeprecatedRules":"60"},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"114","messages":"115","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":"118","usedDeprecatedRules":"60"},{"filePath":"119","messages":"120","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"121","messages":"122","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"123","usedDeprecatedRules":"60"},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","errorCount":0,"warningCount":13,"fixableErrorCount":0,"fixableWarningCount":0,"source":"130","usedDeprecatedRules":"60"},"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/index.js",[],["131","132"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/App.js",["133"],"// import '../styles/App.css';\nimport React from 'react';\nimport { connect } from 'react-redux'\nimport { getCurrentUser } from './actions/currentUser'\nimport { fetchTeams } from './actions/teams'\nimport NavBar from './components/NavBar.js';\nimport TeamsContainer from './Containers/TeamsContainer'\nimport Favorites from './Containers/FavoritesContainer'\nimport Signup from './components/Users/Logout';\nimport About from './components/About'\nimport Login from './components/Users/Login';\nimport Home from './components/Home'\nimport MainContainer from './Containers/MainContainer'\nimport { Route, Switch, withRouter, Redirect } from 'react-router-dom'\nimport favorites from './reducers/favorites';\nclass App extends React.Component {\n\n componentDidMount() {\n this.props.getCurrentUser()\n this.props.fetchTeams()\n }\n\n render() {\n const { loggedIn } = this.props\n return (\n <div className=\"App\">\n { loggedIn ? <NavBar /> : <Home/> }\n <Switch>\n <Route exact path='/' component={MainContainer}/>\n <Route exact path='/signup' render={({history})=><Signup history={history}/>}/>\n <Route exact path='/login' component={Login}/>\n <Route exact path='/teams' component={TeamsContainer}/>\n <Route exact path='/favorites' render={() =>\n <Favorites\n favorites={favorites}\n />\n } />\n <Route exact path='/about' component={About}/>\n </Switch>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return ({\n loggedIn: !!state.currentUser,\n teams: state.teams,\n favorites: state.favorites\n })\n}\n\nexport default withRouter(connect(mapStateToProps, { getCurrentUser, fetchTeams })(App));\n","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/store.js",["134"],"import {createStore, applyMiddleware, compose, combineReducers} from 'redux'\nimport currentUser from './reducers/currentUser'\nimport favorites from './reducers/favorites'\nimport teams from './reducers/teams'\nimport favoriteForm from './reducers/favoriteForm'\nimport loginForm from './reducers/loginForm'\nimport signupForm from './reducers/signupForm'\nimport thunk from 'redux-thunk'\nimport { composeWithDevTools } from 'redux-devtools-extension';\n\nconst reducer = combineReducers({\n currentUser,\n loginForm,\n favorites,\n signupForm,\n favoriteForm,\n teams\n })\n\nconst store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)) )\n\nexport default store\n","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/NavBar.js",["135"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Home.js",["136"],"import React from 'react';\nimport { Link } from 'react-router-dom'\n\n\nconst Home = () => (\n <div>\n <h3>WELCOME TO GAMEZONE</h3>\n <p>Where NBA fans everywhere can unite.</p>\n <span>\n <Link to=\"/signup\">Sign Up</Link> or <Link to=\"/login\">Log In</Link>\n </span>\n <br></br>\n <img width={100} height={200} src=\"https://upload.wikimedia.org/wikipedia/en/thumb/0/03/National_Basketball_Association_logo.svg/210px-National_Basketball_Association_logo.svg.png\" />\n </div>\n\n);\n\nexport default Home;","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/About.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Footer.js",[],["137","138"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/currentUser.js",["139"],"import { resetLoginForm } from \"./loginForm.js\"\nimport { resetSignupForm } from \"./signupForm.js\"\nimport { fetchFavorites, clearFavorites } from \"./favorites.js\"\nimport { fetchTeams, clearTeams } from \"./teams\"\n\nconst END_POINT = 'http://game-zone-api.herokuapp.com/api/v1/'\n\n// synchronous action creators\nexport const setCurrentUser = user => {\n return {\n type: \"SET_CURRENT_USER\",\n user\n }\n}\n\nexport const clearCurrentUser = () => {\n return {\n type: \"CLEAR_CURRENT_USER\"\n }\n}\n\n// asynchronous action creators\nexport const login = (credentials, history) => {\n return dispatch => {\n return fetch(\"http://localhost:3001/api/v1/login\", {\n credentials: \"include\",\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(credentials)\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(setCurrentUser(response.data))\n dispatch(fetchFavorites())\n dispatch(resetLoginForm())\n history.push('/')\n }\n })\n .catch(console.log)\n }\n}\n\nexport const signup = (credentials, history) => {\n return dispatch => {\n const userInfo = {\n user: credentials\n }\n return fetch(`http://localhost:3001/api/v1/signup`, {\n credentials: \"include\",\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(userInfo)\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(setCurrentUser(response.data))\n dispatch(fetchTeams())\n dispatch(resetSignupForm())\n history.push('/')\n }\n })\n .catch(console.log)\n }\n}\n\n\nexport const logout = event => {\n return dispatch => {\n dispatch(clearCurrentUser())\n dispatch(clearFavorites())\n dispatch(clearTeams())\n return fetch(`http://localhost:3001/api/v1/logout`, {\n credentials: \"include\",\n method: \"DELETE\"\n })\n }\n}\n\nexport const getCurrentUser = () => {\n return dispatch => {\n return fetch(`http://localhost:3001/api/v1/get_current_user`, {\n credentials: \"include\",\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(setCurrentUser(response.data))\n dispatch(fetchFavorites())\n }\n })\n .catch(console.log)\n }\n}","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/teams.js",["140"],"import teams from \"../reducers/teams\"\n\nconst END_POINT = 'http://localhost3001/api/v1/'\n\nexport const setTeams = teams => {\n return {\n type: \"SET_TEAMS\",\n teams\n } \n}\n\nexport const clearTeams = () => {\n return {\n type: \"CLEAR_TEAMS\"\n }\n}\n\nexport const fetchTeams = () => {\n return dispatch => {\n return fetch(`http://localhost:3001/api/v1/teams`, {\n credentials: \"include\",\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\" \n },\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(setTeams(response.data))\n }\n })\n .catch(console.log)\n }\n}\n\nexport const fetchTeamsFromSearch = (query) => {\n console.log(query)\n return dispatch => {\n return fetch('http://localhost3001/api/v1/teams', {\n credentials: \"include\",\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\" \n },\n })\n .then(resp => resp.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(searchTeams(response.data))\n }\n })\n .catch(console.log)\n }\n}\n\nexport const searchTeams = () => {\n return {\n type: \"SEARCH_TEAMS\",\n teams\n }\n}\n\nexport default fetchTeams","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/currentUser.js",["141"],"export default (state = null, action) => {\n switch (action.type) {\n case \"SET_CURRENT_USER\":\n return action.user\n case \"CLEAR_CURRENT_USER\":\n return null\n default:\n return state\n }\n }","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/favorites.js",["142"],"const initialState = []\n\nexport default (state = initialState, action) => {\n switch(action.type) {\n case \"SET_FAVORITES\":\n return action.favorites\n case \"FETCH_FAVORITES\":\n return {\n ...state,\n favorites: action.favorites\n }\n case \"ADD_FAVORITE\":\n return state.concat(action.favorite)\n case \"DELETE_FAVORITE\":\n return state.filter(favorite => favorite.id === action.favoriteId ? false : true)\n default:\n return state\n } \n}","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/loginForm.js",["143"],"const initialState = {\n username: \"\",\n password: \"\"\n }\n \n export default (state = initialState, action) => {\n switch (action.type) {\n case \"UPDATE_LOGIN_FORM\":\n return action.formData\n case \"RESET_LOGIN_FORM\":\n return initialState\n default:\n return state\n }\n }","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/favoriteForm.js",["144"],"const initialState = {\n user_id: \"\",\n team_id: \"\"\n }\n \n export default (state=initialState, action) => {\n switch (action.type) {\n case \"UPDATE_NEW_FAVORITE_FORM\":\n const returnVal = {\n ...state,\n [action.formData.name]: action.formData.value\n }\n return returnVal\n case \"RESET_NEW_FAVORITE_FORM\":\n return initialState\n default:\n return state\n }\n }","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/signupForm.js",["145"],"const initialState = {\n firstname: '',\n lastname: '',\n location: '',\n username: '',\n email: '',\n img_src: '',\n password: '',\n }\n \n export default (state=initialState, action) => {\n switch (action.type) {\n case \"UPDATE_SIGNUP_FORM\":\n return action.formData\n case \"RESET_SIGNUP_FORM\":\n return initialState\n default:\n return state\n }\n }","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/reducers/teams.js",["146","147"],"const initialState = []\n\nexport default (state = initialState, action) => {\n switch(action.type) {\n case \"SET_TEAMS\":\n return action.teams\n case \"FETCH_TEAMS\":\n return {\n ...state,\n teams: action.teams\n }\n return\n case \"SEARCH_TEAMS\":\n return \n default:\n return state\n }\n}","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/signupForm.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/loginForm.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/favorites.js",["148","149"],"import { resetFavoriteForm } from './favoriteForm'\n\nconst END_POINT = 'http://localhost:3001/api/v1/'\n\nexport const setFavorites = favorites => {\n return {\n type: \"SET_FAVORITES\",\n favorites\n } \n}\n\nexport const clearFavorites = () => {\n return {\n type: \"CLEAR_FAVORITES\"\n }\n }\n \n export const addFavorite = favorite => {\n return {\n type: \"ADD_FAVORITE\",\n favorite\n }\n }\n \n export const deleteFavoriteSuccess = favoriteId => {\n return {\n type: \"DELETE_FAVORITE\",\n favoriteId\n }\n }\n\nexport const fetchFavorites = () => {\n return dispatch => {\n return fetch(`http://localhost:3001/api/v1/favorites`, {\n credentials: \"include\",\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\" \n },\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(setFavorites(response.data))\n }\n })\n .catch(console.log)\n }\n}\n\n\n// export const createFavorite = (team_id, history) => {\n\nexport const createFavorite = (team_id, user_id) => {\n // console.log(\"hello\")\n return dispatch => {\n return fetch(\"http://localhost:3001/api/v1/favorites\", {\n credentials: \"include\",\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n user_id: parseInt(user_id),\n team_id: parseInt(team_id)\n })\n })\n .then(r => r.json())\n .then(response => {\n if (response.error) {\n alert(response.error)\n } else {\n dispatch(addFavorite(response.data))\n dispatch(fetchFavorites())\n }\n })\n .catch(console.log)\n }\n }\n\nexport const deleteFavorite = (favoriteId) => {\n return dispatch => {\n return fetch(`http://localhost:3001/api/v1/favorites/${favoriteId}`, {\n credentials: \"include\",\n method: \"DELETE\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n })\n .then(r => r.json())\n .then(resp => {\n if (resp.error) {\n alert(resp.error)\n } else {\n dispatch(deleteFavoriteSuccess(favoriteId))\n }\n })\n .catch(console.log)\n \n }\n \n }\n\nexport default fetchFavorites","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/favoriteForm.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/searchForm.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/TeamsContainer.js",["150","151"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/FavoritesContainer.js",["152","153","154"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/Containers/MainContainer.js",["155","156","157","158","159"],"import React from 'react';\nimport Favorites from './FavoritesContainer'\nimport Teams from './TeamsContainer'\nimport { Link } from 'react-router-dom'\nimport { connect } from 'react-redux'\nimport { getCurrentUser } from '../actions/currentUser'\nimport { Route, Switch, withRouter, Redirect } from 'react-router-dom'\n\nclass MainContainer extends React.Component {\n\n render() {\n const { loggedIn } = this.props\n\n return (\n <div className=\"MainContainer\">\n\n { loggedIn ? (<Link to=\"/favorites\">View Your Favorites</Link>) : null}\n\n </div>\n )\n }\n}\n\nconst mapStateToProps = state => {\n return ({\n loggedIn: !!state.currentUser,\n })\n}\n\nexport default withRouter(connect(mapStateToProps, { getCurrentUser })(MainContainer));","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Favorties/FavoriteCard.js",["160","161"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Users/Logout.js",["162","163"],"import React from 'react'\nimport { connect } from 'react-redux'\nimport { logout } from \"../../actions/currentUser\"\nimport { withRouter } from 'react-router-dom'\nimport { Form, Button, InputGroup } from 'react-bootstrap'\n\nconst Logout = ({ logout, history }) => {\n return (\n <form onSubmit={(event) => {\n event.preventDefault()\n logout()\n history.push('/')\n }\n }>\n <Button variant=\"primary\" value=\"Log Out\" type=\"submit\">Logout</Button>\n\n </form>\n )\n}\n\nexport default withRouter(connect(null, { logout } )(Logout))","/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/actions/users.js",[],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Teams/TeamCard.js",["164","165"],"/Users/GhameerahM/Learn/code/capstone-react-app/game-zone-frontend/src/components/Users/Login.js",["166","167","168","169","170","171","172","173","174","175","176","177","178"],"import { Form, Button, FormGroup } from 'react-bootstrap'\nimport React from 'react'\nimport { connect } from 'react-redux'\nimport { updateLoginForm } from \"../../actions/loginForm.js\"\nimport { login } from \"../../actions/currentUser.js\"\n\nimport {\n Grid,\n Container,\n Input,\n InputLabel,\n InputAdornment,\n FormControlLabel,\n Checkbox,\n Card,\n TextField,\n CardContent,\n FormControl\n} from '@material-ui/core';\n\nconst Login = ({ loginFormData, updateLoginForm, login, history }) => {\n\n const handleInputChange = (event) => {\n const { name, value } = event.target\n const updatedFormInfo = {\n ...loginFormData,\n [name]: value\n }\n updateLoginForm(updatedFormInfo)\n }\n\n const handleSubmit = event => {\n event.preventDefault()\n login(loginFormData, history)\n }\n \n return (\n <form inline onSubmit={handleSubmit}>\n <div>\n <input\n variant=\"filled\"\n type=\"text\" \n value={loginFormData.username}\n placeholder=\"username\"\n name=\"username\"\n onChange={handleInputChange} />\n </div>\n <br></br>\n <div>\n <input\n variant=\"filled\"\n type=\"password\" \n value={loginFormData.password} \n placeholder=\"password\"\n name=\"password\"\n onChange={handleInputChange} />\n </div>\n <br></br>\n\n <Button variant=\"primary\" value=\"Login\" type=\"submit\">Login</Button>\n </form>\n );\n}\n\nconst mapStateToProps = state => {\n return {\n loginFormData: state.loginForm\n }\n}\n\nexport default connect(mapStateToProps, { updateLoginForm, login } )(Login)",{"ruleId":"179","replacedBy":"180"},{"ruleId":"181","replacedBy":"182"},{"ruleId":"183","severity":1,"message":"184","line":14,"column":37,"nodeType":"185","messageId":"186","endLine":14,"endColumn":45},{"ruleId":"183","severity":1,"message":"187","line":1,"column":39,"nodeType":"185","messageId":"186","endLine":1,"endColumn":46},{"ruleId":"188","severity":1,"message":"189","line":22,"column":19,"nodeType":"190","endLine":22,"endColumn":111},{"ruleId":"188","severity":1,"message":"189","line":13,"column":5,"nodeType":"190","endLine":13,"endColumn":188},{"ruleId":"179","replacedBy":"191"},{"ruleId":"181","replacedBy":"192"},{"ruleId":"183","severity":1,"message":"193","line":6,"column":7,"nodeType":"185","messageId":"186","endLine":6,"endColumn":16},{"ruleId":"183","severity":1,"message":"193","line":3,"column":7,"nodeType":"185","messageId":"186","endLine":3,"endColumn":16},{"ruleId":"194","severity":1,"message":"195","line":1,"column":1,"nodeType":"196","endLine":10,"endColumn":4},{"ruleId":"194","severity":1,"message":"195","line":3,"column":1,"nodeType":"196","endLine":19,"endColumn":2},{"ruleId":"194","severity":1,"message":"195","line":6,"column":3,"nodeType":"196","endLine":15,"endColumn":4},{"ruleId":"194","severity":1,"message":"195","line":6,"column":3,"nodeType":"196","endLine":19,"endColumn":4},{"ruleId":"194","severity":1,"message":"195","line":11,"column":3,"nodeType":"196","endLine":20,"endColumn":4},{"ruleId":"194","severity":1,"message":"195","line":3,"column":1,"nodeType":"196","endLine":18,"endColumn":2},{"ruleId":"197","severity":1,"message":"198","line":12,"column":11,"nodeType":"199","messageId":"200","endLine":12,"endColumn":17},{"ruleId":"183","severity":1,"message":"201","line":1,"column":10,"nodeType":"185","messageId":"186","endLine":1,"endColumn":27},{"ruleId":"183","severity":1,"message":"193","line":3,"column":7,"nodeType":"185","messageId":"186","endLine":3,"endColumn":16},{"ruleId":"183","severity":1,"message":"202","line":3,"column":10,"nodeType":"185","messageId":"186","endLine":3,"endColumn":14},{"ruleId":"203","severity":1,"message":"204","line":8,"column":5,"nodeType":"205","messageId":"206","endLine":10,"endColumn":6},{"ruleId":"183","severity":1,"message":"202","line":3,"column":10,"nodeType":"185","messageId":"186","endLine":3,"endColumn":14},{"ruleId":"183","severity":1,"message":"207","line":4,"column":8,"nodeType":"185","messageId":"186","endLine":4,"endColumn":17},{"ruleId":"203","severity":1,"message":"204","line":8,"column":5,"nodeType":"205","messageId":"206","endLine":10,"endColumn":6},{"ruleId":"183","severity":1,"message":"208","line":2,"column":8,"nodeType":"185","messageId":"186","endLine":2,"endColumn":17},{"ruleId":"183","severity":1,"message":"209","line":3,"column":8,"nodeType":"185","messageId":"186","endLine":3,"endColumn":13},{"ruleId":"183","severity":1,"message":"210","line":7,"column":10,"nodeType":"185","messageId":"186","endLine":7,"endColumn":15},{"ruleId":"183","severity":1,"message":"211","line":7,"column":17,"nodeType":"185","messageId":"186","endLine":7,"endColumn":23},{"ruleId":"183","severity":1,"message":"184","line":7,"column":37,"nodeType":"185","messageId":"186","endLine":7,"endColumn":45},{"ruleId":"183","severity":1,"message":"202","line":2,"column":10,"nodeType":"185","messageId":"186","endLine":2,"endColumn":14},{"ruleId":"188","severity":1,"message":"189","line":22,"column":13,"nodeType":"190","endLine":22,"endColumn":94},{"ruleId":"183","severity":1,"message":"212","line":5,"column":10,"nodeType":"185","messageId":"186","endLine":5,"endColumn":14},{"ruleId":"183","severity":1,"message":"213","line":5,"column":24,"nodeType":"185","messageId":"186","endLine":5,"endColumn":34},{"ruleId":"183","severity":1,"message":"202","line":2,"column":10,"nodeType":"185","messageId":"186","endLine":2,"endColumn":14},{"ruleId":"188","severity":1,"message":"189","line":20,"column":13,"nodeType":"190","endLine":20,"endColumn":90},{"ruleId":"183","severity":1,"message":"212","line":1,"column":10,"nodeType":"185","messageId":"186","endLine":1,"endColumn":14},{"ruleId":"183","severity":1,"message":"214","line":1,"column":24,"nodeType":"185","messageId":"186","endLine":1,"endColumn":33},{"ruleId":"183","severity":1,"message":"215","line":8,"column":3,"nodeType":"185","messageId":"186","endLine":8,"endColumn":7},{"ruleId":"183","severity":1,"message":"216","line":9,"column":3,"nodeType":"185","messageId":"186","endLine":9,"endColumn":12},{"ruleId":"183","severity":1,"message":"217","line":10,"column":3,"nodeType":"185","messageId":"186","endLine":10,"endColumn":8},{"ruleId":"183","severity":1,"message":"218","line":11,"column":3,"nodeType":"185","messageId":"186","endLine":11,"endColumn":13},{"ruleId":"183","severity":1,"message":"219","line":12,"column":3,"nodeType":"185","messageId":"186","endLine":12,"endColumn":17},{"ruleId":"183","severity":1,"message":"220","line":13,"column":3,"nodeType":"185","messageId":"186","endLine":13,"endColumn":19},{"ruleId":"183","severity":1,"message":"221","line":14,"column":3,"nodeType":"185","messageId":"186","endLine":14,"endColumn":11},{"ruleId":"183","severity":1,"message":"222","line":15,"column":3,"nodeType":"185","messageId":"186","endLine":15,"endColumn":7},{"ruleId":"183","severity":1,"message":"223","line":16,"column":3,"nodeType":"185","messageId":"186","endLine":16,"endColumn":12},{"ruleId":"183","severity":1,"message":"224","line":17,"column":3,"nodeType":"185","messageId":"186","endLine":17,"endColumn":14},{"ruleId":"183","severity":1,"message":"225","line":18,"column":3,"nodeType":"185","messageId":"186","endLine":18,"endColumn":14},"no-native-reassign",["226"],"no-negated-in-lhs",["227"],"no-unused-vars","'Redirect' is defined but never used.","Identifier","unusedVar","'compose' is defined but never used.","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement",["226"],["227"],"'END_POINT' is assigned a value but never used.","import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","no-unreachable","Unreachable code.","ReturnStatement","unreachableCode","'resetFavoriteForm' is defined but never used.","'Link' is defined but never used.","no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","'favorites' is defined but never used.","'Favorites' is defined but never used.","'Teams' is defined but never used.","'Route' is defined but never used.","'Switch' is defined but never used.","'Form' is defined but never used.","'InputGroup' is defined but never used.","'FormGroup' is defined but never used.","'Grid' is defined but never used.","'Container' is defined but never used.","'Input' is defined but never used.","'InputLabel' is defined but never used.","'InputAdornment' is defined but never used.","'FormControlLabel' is defined but never used.","'Checkbox' is defined but never used.","'Card' is defined but never used.","'TextField' is defined but never used.","'CardContent' is defined but never used.","'FormControl' is defined but never used.","no-global-assign","no-unsafe-negation"]