我收到来自 ESlint 的错误,但我不明白为什么。我读过这些:
\n\n\n\n和这个:
\n\n\n\n我仍然不明白我做错了什么。
\n\n我的课
\n\n/* eslint-disable no-plusplus */\r\n/* eslint-disable no-undef */\r\nclass Player {\r\n constructor(imagePlayer, name, score, positionY, positionX) {\r\n this.imagePlayer = imagePlayer;\r\n this.name = name;\r\n this.score = score;\r\n this.x = positionX;\r\n this.y = positionY;\r\n }\r\n\r\n drawPlayer() {\r\n app.map.mapGame[this.y][this.x] = this.imagePlayer;\r\n }\r\n\r\n obstacle(y, x) {\r\n let colision = false;\r\n if (app.map.mapGame[y][x] === 1) {\r\n console.log("evaluaci\xc3\xb3n");\r\n colision = true;\r\n }\r\n return …Run Code Online (Sandbox Code Playgroud)