-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.88 KB
/
.eslintcache
1
[{"/Users/allengu/Documents/3d-snake/src/App.js":"1","/Users/allengu/Documents/3d-snake/src/reportWebVitals.js":"2","/Users/allengu/Documents/3d-snake/src/index.js":"3","/Users/allengu/Documents/3d-snake/src/Game.js":"4","/Users/allengu/Documents/3d-snake/src/Settings.js":"5","/Users/allengu/Documents/3d-snake/src/Scoreboard.js":"6","/Users/allengu/Documents/3d-snake/src/Message.js":"7","/Users/allengu/Documents/3d-snake/src/PathAI.js":"8"},{"size":3915,"mtime":1610324290128,"results":"9","hashOfConfig":"10"},{"size":362,"mtime":1608868245538,"results":"11","hashOfConfig":"10"},{"size":500,"mtime":1608868245537,"results":"12","hashOfConfig":"10"},{"size":9976,"mtime":1610353463913,"results":"13","hashOfConfig":"10"},{"size":5362,"mtime":1610324047546,"results":"14","hashOfConfig":"10"},{"size":223,"mtime":1608975020793,"results":"15","hashOfConfig":"10"},{"size":327,"mtime":1609112519550,"results":"16","hashOfConfig":"10"},{"size":3499,"mtime":1610352839342,"results":"17","hashOfConfig":"10"},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"4m4khk",{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":"28"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/allengu/Documents/3d-snake/src/App.js",[],"/Users/allengu/Documents/3d-snake/src/reportWebVitals.js",[],"/Users/allengu/Documents/3d-snake/src/index.js",[],"/Users/allengu/Documents/3d-snake/src/Game.js",[],"/Users/allengu/Documents/3d-snake/src/Settings.js",["35","36","37","38","39"],"import React from \"react\";\nimport \"./Settings.css\";\nimport ControlsImage from \"./controls.svg\";\n\nclass Instructions extends React.Component {\n render() {\n return (\n <div className=\"Instructions\">\n <div className=\"Instructions-Header\">Instructions</div>\n <ol>\n <li>Choose the size.</li>\n <li>Click \"Start\" or use the space bar to begin playing.</li>\n <li>Check out my Pathfinding AI play the game (under \"Player\"). Keep the size to \"Small\".</li>\n <li>Have fun :)</li>\n </ol>\n </div>\n )\n }\n}\n\nclass BoundsSizeInput extends React.Component {\n constructor(props) {\n super(props);\n }\n\n handleChange = (e) => {\n this.props.onBoundsSizeChange(e.target.value);\n }\n\n render() {\n return (\n <div>\n <label className=\"bounds-size-label\">\n Size: \n <select className=\"bounds-size-select\" value={this.props.value} onChange={this.handleChange}>\n <option value=\"7\">Small</option>\n <option value=\"15\">Medium</option>\n <option value=\"25\">Large</option>\n </select>\n </label>\n </div>\n );\n }\n}\n\nclass SpeedInput extends React.Component {\n constructor(props) {\n super(props);\n }\n\n handleChange = (e) => {\n this.props.onSpeedChange(e.target.value);\n }\n\n render() {\n return (\n <div>\n <label className=\"speed-label\">\n Speed: \n <select className=\"speed-select\" value={this.props.value} onChange={this.handleChange}>\n <option value=\"1.5\">Slow</option>\n <option value=\"3\">Medium</option>\n <option value=\"6\">Fast</option>\n </select>\n </label>\n </div>\n );\n }\n}\n\nclass PlayerInput extends React.Component {\n handleChange = (e) => {\n this.props.onPlayerChange(e.target.value);\n }\n\n render() {\n return (\n <div>\n <label className=\"player-label\">\n Player: \n <select className=\"player-select\" value={this.props.value} onChange={this.handleChange}>\n <option value=\"you\">You</option>\n <option value=\"pathfinding\">Pathfinding AI</option>\n </select>\n </label>\n </div>\n )\n }\n}\n\nclass StartButton extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n this.props.onStartClick();\n }\n\n render() {\n return (\n <a className=\"start-button\">\n <button onClick={this.handleClick}>Start</button>\n </a>\n ) \n }\n}\n\nclass StopButton extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n this.props.onStopClick();\n }\n\n render() {\n return (\n <a className=\"start-button\">\n <button onClick={this.handleClick}>Stop</button>\n </a>\n )\n }\n}\n\nclass ResetButton extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n this.props.onResetClick();\n }\n\n render() {\n return (\n <a className=\"reset-button\">\n <button onClick={this.handleClick}>Reset</button>\n </a>\n )\n }\n}\n\nclass Controls extends React.Component {\n render() {\n return (\n <div className=\"Controls\">\n <div>Controls</div>\n <img src={ControlsImage} alt=\"Controls\" width=\"200px\" height=\"200px\"></img>\n </div>\n )\n }\n}\n\nclass ToDoList extends React.Component {\n render() {\n return (\n <div className=\"ToDo\">\n To Do:\n <ul>\n <li>Better 3D depth or grid?</li>\n <li>Leaderboard</li>\n </ul>\n </div>\n )\n }\n}\n\nclass Settings extends React.Component {\n render() {\n return (\n <div className=\"Settings\">\n <Instructions />\n <BoundsSizeInput value={this.props.boundsSize}\n onBoundsSizeChange={this.props.onBoundsSizeChange} />\n <SpeedInput value={this.props.speed}\n onSpeedChange={this.props.onSpeedChange} />\n <PlayerInput value={this.props.player}\n onPlayerChange={this.props.onPlayerChange} />\n <div className=\"SettingsButtons\">\n <StartButton onStartClick={this.props.onStartClick} />\n <StopButton onStopClick={this.props.onStopClick} />\n <ResetButton onResetClick={this.props.onResetClick} />\n </div>\n <Controls />\n <ToDoList />\n </div>\n );\n }\n}\n\nexport default Settings;\n","/Users/allengu/Documents/3d-snake/src/Scoreboard.js",[],"/Users/allengu/Documents/3d-snake/src/Message.js",[],"/Users/allengu/Documents/3d-snake/src/PathAI.js",[],{"ruleId":"40","severity":1,"message":"41","line":22,"column":5,"nodeType":"42","messageId":"43","endLine":24,"endColumn":6},{"ruleId":"40","severity":1,"message":"41","line":47,"column":5,"nodeType":"42","messageId":"43","endLine":49,"endColumn":6},{"ruleId":"44","severity":1,"message":"45","line":103,"column":13,"nodeType":"46","endLine":103,"endColumn":41},{"ruleId":"44","severity":1,"message":"45","line":122,"column":13,"nodeType":"46","endLine":122,"endColumn":41},{"ruleId":"44","severity":1,"message":"45","line":141,"column":13,"nodeType":"46","endLine":141,"endColumn":41},"no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement"]