-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintcache
1 lines (1 loc) · 10.6 KB
/
.eslintcache
1
[{"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/index.js":"1","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/firebase.js":"2","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Table/tableRender.js":"3","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Favourite/favourite.js":"4","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Table/Table.js":"5","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Player/Player.js":"6","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Homepage/Homepage.js":"7","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Fixtures/Fixtures.js":"8","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Header/Header.js":"9","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/MyTeam/MyTeam.js":"10","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/App.js":"11","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Club/Club.js":"12"},{"size":333,"mtime":1607513966331,"results":"13","hashOfConfig":"14"},{"size":943,"mtime":1607513966311,"results":"15","hashOfConfig":"14"},{"size":964,"mtime":1608108519666,"results":"16","hashOfConfig":"14"},{"size":696,"mtime":1607074264473,"results":"17","hashOfConfig":"14"},{"size":2314,"mtime":1608108519640,"results":"18","hashOfConfig":"14"},{"size":3224,"mtime":1608108519552,"results":"19","hashOfConfig":"14"},{"size":182,"mtime":1608079150729,"results":"20","hashOfConfig":"14"},{"size":1568,"mtime":1608079150706,"results":"21","hashOfConfig":"14"},{"size":934,"mtime":1608079150722,"results":"22","hashOfConfig":"14"},{"size":2242,"mtime":1608079150736,"results":"23","hashOfConfig":"14"},{"size":1428,"mtime":1608108519444,"results":"24","hashOfConfig":"14"},{"size":1961,"mtime":1608108519502,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"10yufha",{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"35","usedDeprecatedRules":"36"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"39"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/index.js",[],["55","56"],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/firebase.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Table/tableRender.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Favourite/favourite.js",["57","58"],"import React, { Component } from 'react';\nimport './favourite.css';\n\nconst Favourite = ({ fname, sname, score, cost, form, points, image }) => {\n return (<div className=\"fav-list\">\n <table>\n <thead>\n <tr>\n <th>Name</th>\n <th>Score</th>\n <th>Cost</th>\n <th>Form</th>\n <th>Points</th>\n <th>Image</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>{fname} {sname}</th>\n <th>{score}</th>\n <th>{cost}</th>\n <th>{form}</th>\n <th>{points}</th>\n <th><img src={image} /></th>\n </tr>\n </tbody>\n </table>\n\n </div >\n\n );\n};\n\n\n\nexport default Favourite;",["59","60"],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Table/Table.js",[],["61","62"],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Player/Player.js",["63","64"],"import React, { Component } from \"react\";\nimport axios from \"axios\";\nimport \"./Player.css\";\nimport Favourite from \"../Favourite/favourite\";\nimport MyClubs from \"../Club/Club\"\nimport { firebase } from '../../firebase'\nimport MyTeam from '../MyTeam/MyTeam'\nconst API =\n \"https://cors-anywhere.herokuapp.com/https://fantasy.premierleague.com/api/bootstrap-static/\";\nconst params = {\n _limit: 1,\n};\n\n\nclass Player extends Component {\n state = {\n league: {\n events: [],\n elements: [],\n },\n listClub: false,\n isLoading: false,\n fname: \"\",\n sname: \"\",\n cost: \"\",\n score: \"\",\n form: \"\",\n points: \"\",\n image: \"\",\n user: null\n };\n\n componentDidMount() {\n this.setState({ isLaoding: true });\n axios\n .get(API, { params })\n .then((response) =>\n this.setState({ league: response.data, isLoading: false })\n );\n }\n\n addHandler(id) {\n const favlist = this.state.league.elements.find(\n (player) => player.id == id\n );\n this.setState({\n fname: favlist.first_name,\n sname: favlist.second_name,\n score: favlist.goals_scored,\n cost: favlist.now_cost,\n form: favlist.form,\n points: favlist.total_points,\n image: favlist.photo,\n });\n\n this.addToUserTeam(favlist)\n }\n\n clubHandler() {\n console.log('Hello');\n this.setState({ listClub: true });\n }\n\n async addToUserTeam(favlist) {\n const db = firebase.firestore();\n let userId = firebase.auth().currentUser.uid\n let userInfo = await db.collection('users').doc(userId).get()\n if (!userInfo) return\n let data = userInfo.data()\n let updatedTeam = [...data.team, `${favlist.first_name} ${favlist.second_name} ${favlist.total_points}`]\n let newData = { team: updatedTeam }\n await db.collection('users').doc(userId).set(newData)\n }\n\n render() {\n\n if (this.state.isLoading) {\n return <p>Loading.....</p>;\n }\n return (\n <div>\n <Favourite\n fname={this.state.fname}\n sname={this.state.sname}\n score={this.state.score}\n cost={this.state.cost}\n form={this.state.form}\n points={this.state.points}\n image={this.state.image}\n />\n\n <button className=\"myclub-Btn\" onClick={() => this.clubHandler()}>Search by Club</button>\n {this.state.listClub && < MyClubs include={this.addHandler} />}\n <div>\n <h2>Player list</h2>\n <ul className=\"playerslist\">\n {this.state.league.elements.map((items) => (\n <li className=\"player\" key={items.id}>\n <h2>{items.first_name}</h2>\n <p>{items.second_name}</p>\n <p>{items.form}</p>\n <p>{items.now_cost}</p>\n <p>{items.goals_scored}</p>\n <p>{items.total_points}</p>\n <p>{items.creativity}</p>\n <img src={items.photo} />\n <div className=\"add\" onClick={() => this.addHandler(items.id)}>\n +{\" \"}\n </div>\n </li>\n ))}\n </ul>\n </div>\n {this.props.user && <MyTeam user={{ ...this.props.user }} />}\n </div>\n );\n }\n}\n\nexport default Player;\n\n\n","/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Homepage/Homepage.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Fixtures/Fixtures.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Header/Header.js",["65"],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/MyTeam/MyTeam.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/App.js",[],"/Users/louisatkinson/Documents/Programming/Fantasy-Football/fantasy_football_group/src/Component/Club/Club.js",["66"],{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","replacedBy":"70"},{"ruleId":"71","severity":1,"message":"72","line":1,"column":17,"nodeType":"73","messageId":"74","endLine":1,"endColumn":26},{"ruleId":"75","severity":1,"message":"76","line":24,"column":15,"nodeType":"77","endLine":24,"endColumn":34},{"ruleId":"67","replacedBy":"78"},{"ruleId":"69","replacedBy":"79"},{"ruleId":"67","replacedBy":"80"},{"ruleId":"69","replacedBy":"81"},{"ruleId":"82","severity":1,"message":"83","line":44,"column":29,"nodeType":"84","messageId":"85","endLine":44,"endColumn":31},{"ruleId":"75","severity":1,"message":"76","line":106,"column":17,"nodeType":"77","endLine":106,"endColumn":42},{"ruleId":"71","severity":1,"message":"86","line":2,"column":15,"nodeType":"73","messageId":"74","endLine":2,"endColumn":24},{"ruleId":"71","severity":1,"message":"87","line":6,"column":7,"nodeType":"73","messageId":"74","endLine":6,"endColumn":13},"no-native-reassign",["88"],"no-negated-in-lhs",["89"],"no-unused-vars","'Component' is defined but never used.","Identifier","unusedVar","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement",["88"],["89"],["88"],["89"],"eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","'useEffect' is defined but never used.","'params' is assigned a value but never used.","no-global-assign","no-unsafe-negation"]