-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 10.6 KB
/
.eslintcache
1
[{"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/reportWebVitals.js":"1","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/App.js":"2","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/style/global.js":"3","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarBlue/index.js":"4","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarBlue/style.js":"5","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Background/index.js":"6","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Main/index.js":"7","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Home/index.js":"8","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Home/style.js":"9","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/style/fonts.js":"10","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Laps/index.js":"11","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Laps/styled.js":"12","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Pause/index.js":"13","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Pause/styled.js":"14","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/GameOver/index.js":"15","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/GameOver/style.js":"16","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarRed/index.js":"17","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarRed/style.js":"18","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/index.js":"19","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/routes.js":"20"},{"size":362,"mtime":1611184248453,"results":"21","hashOfConfig":"22"},{"size":321,"mtime":1611682691585,"results":"23","hashOfConfig":"22"},{"size":485,"mtime":1611634060860,"results":"24","hashOfConfig":"22"},{"size":311,"mtime":1611624677916,"results":"25","hashOfConfig":"22"},{"size":358,"mtime":1611688214507,"results":"26","hashOfConfig":"22"},{"size":222,"mtime":1611609363440,"results":"27","hashOfConfig":"22"},{"size":2165,"mtime":1611697738212,"results":"28","hashOfConfig":"22"},{"size":1480,"mtime":1611704886504,"results":"29","hashOfConfig":"22"},{"size":1209,"mtime":1611681979690,"results":"30","hashOfConfig":"22"},{"size":765,"mtime":1611634135094,"results":"31","hashOfConfig":"22"},{"size":550,"mtime":1611705147436,"results":"32","hashOfConfig":"22"},{"size":219,"mtime":1611683554473,"results":"33","hashOfConfig":"22"},{"size":293,"mtime":1611693435396,"results":"34","hashOfConfig":"22"},{"size":596,"mtime":1611693435390,"results":"35","hashOfConfig":"22"},{"size":937,"mtime":1611705264151,"results":"36","hashOfConfig":"22"},{"size":875,"mtime":1611699800785,"results":"37","hashOfConfig":"22"},{"size":233,"mtime":1611697287391,"results":"38","hashOfConfig":"22"},{"size":306,"mtime":1611697633264,"results":"39","hashOfConfig":"22"},{"size":500,"mtime":1611184248449,"results":"40","hashOfConfig":"22"},{"size":513,"mtime":1611704306090,"results":"41","hashOfConfig":"22"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},"1d4mrdb",{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"60","usedDeprecatedRules":"44"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"73"},{"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},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/reportWebVitals.js",[],["88","89"],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/App.js",[],["90","91"],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/style/global.js",[],["92","93"],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarBlue/index.js",[],["94","95"],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarBlue/style.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Background/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Main/index.js",["96"],"import React, { useEffect, useState } from 'react';\nimport Background from '../../components/Background';\nimport CarBlue from '../../components/CarBlue';\nimport CarRed from '../../components/CarRed';\nimport Laps from '../../components/Laps';\nimport Pause from '../../components/Pause';\n\nexport default function Main(){\n const [position, setPosition] = useState('Middle');\n const [velocity, setVelocity] = useState('normal');\n const [gamePause, setGamePause] = useState(false);\n const [gameClass, setGameClass] = useState('play');\n\n const positionCar = (event) => {\n let key = event.key;\n\n if(gamePause && key===\"Escape\"){\n setGamePause(false);\n setGameClass('play');\n }else if(!gamePause){\n switch(key){\n default:\n break; \n case 'a':\n case 'A':\n setPosition('Left');\n break;\n case 's':\n case 'S':\n setPosition('Middle');\n break;\n case 'd':\n case 'D':\n setPosition('Right');\n break;\n case 'ArrowLeft':\n arrowKeyLeft()\n break;\n case 'ArrowRight':\n arrowKeyRight()\n break;\n case 'ArrowUp':\n setVelocity('speedUp');\n break;\n case 'ArrowDown':\n setVelocity('normal');\n break;\n case 'Escape':\n setGamePause(true)\n setGameClass('pause')\n break;\n }\n }\n }\n\n function arrowKeyLeft(){\n if(position === 'Middle'){\n setPosition('Left');\n return;\n }\n if(position === 'Right'){\n setPosition('Middle');\n return;\n }\n }\n\n function arrowKeyRight(){\n if(position === 'Middle'){\n setPosition('Right');\n }else if(position === \"Left\"){\n setPosition('Middle');\n }\n }\n useEffect(()=> {\n window.addEventListener('keydown', positionCar);\n return () => {\n window.removeEventListener('keydown', positionCar);\n }\n },[position, gamePause, gameClass])\n return(\n <>\n <Pause pauseClass={ gameClass } />\n <Background />\n <Laps pause={ gamePause } />\n <CarBlue position={position} fast={velocity} />\n <CarRed />\n </>\n );\n}","/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Home/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/Home/style.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/style/fonts.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Laps/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Laps/styled.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Pause/index.js",[],["97","98"],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/Pause/styled.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/GameOver/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/pages/GameOver/style.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarRed/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/components/CarRed/style.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/index.js",[],"/home/danillo/Documentos/Projetos/DesafioFront/game-car/src/routes.js",[],{"ruleId":"99","replacedBy":"100"},{"ruleId":"101","replacedBy":"102"},{"ruleId":"99","replacedBy":"103"},{"ruleId":"101","replacedBy":"104"},{"ruleId":"99","replacedBy":"105"},{"ruleId":"101","replacedBy":"106"},{"ruleId":"99","replacedBy":"107"},{"ruleId":"101","replacedBy":"108"},{"ruleId":"109","severity":1,"message":"110","line":79,"column":5,"nodeType":"111","endLine":79,"endColumn":37,"suggestions":"112"},{"ruleId":"99","replacedBy":"113"},{"ruleId":"101","replacedBy":"114"},"no-native-reassign",["115"],"no-negated-in-lhs",["116"],["115"],["116"],["115"],["116"],["115"],["116"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'positionCar'. Either include it or remove the dependency array.","ArrayExpression",["117"],["115"],["116"],"no-global-assign","no-unsafe-negation",{"desc":"118","fix":"119"},"Update the dependencies array to be: [position, gamePause, gameClass, positionCar]",{"range":"120","text":"121"},[1932,1964],"[position, gamePause, gameClass, positionCar]"]