Skip to content

Commit

Permalink
fix prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
criticic authored and shivansh-bhatnagar18 committed May 30, 2024
1 parent 1e9df7c commit 9276376
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions backend/gameStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const games: Map<string, GameEngine> = new Map();
/**
* Create a new game and store it in the games map
* @returns {string} gameId
*/
*/
export function createGame() {
const gameId = uuid();
const game = new GameEngine();
Expand All @@ -22,4 +22,4 @@ export function createGame() {
*/
export function retrieveGame(id: string) {
return games.get(id) || null;
}
}
70 changes: 35 additions & 35 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "backend",
"version": "1.0.0",
"main": "index.js",
"type": "module",
"scripts": {
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"format": "prettier --check .",
"fix-format": "prettier --write .",
"test": "jest",
"start": "ts-node src/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@types/node": "^20.12.13",
"@types/uuid": "^9.0.8",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"mongoose": "^8.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"eslint": "^8.57.0",
"eslint-plugin-jsdoc": "^48.2.6",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"supertest": "^7.0.0"
}
"name": "backend",
"version": "1.0.0",
"main": "index.js",
"type": "module",
"scripts": {
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"format": "prettier --check .",
"fix-format": "prettier --write .",
"test": "jest",
"start": "ts-node src/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@types/node": "^20.12.13",
"@types/uuid": "^9.0.8",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"mongoose": "^8.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"eslint": "^8.57.0",
"eslint-plugin-jsdoc": "^48.2.6",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"supertest": "^7.0.0"
}
}

0 comments on commit 9276376

Please sign in to comment.