Skip to content

Commit

Permalink
Merge branch 'master' into fix/issue-#4
Browse files Browse the repository at this point in the history
  • Loading branch information
sethdivyansh authored May 31, 2024
2 parents 34e4d85 + 6ba79dd commit 638c172
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules/*
/dist/*
/tests/*
/jest.config.js
1 change: 0 additions & 1 deletion backend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"plugins": ["@typescript-eslint"],
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
Expand Down
3 changes: 1 addition & 2 deletions backend/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"endOfLine": "lf"
"semi": true
}
1 change: 1 addition & 0 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
module.exports = {
transform: { '^.+\\.d?ts?$': 'ts-jest' },
testEnvironment: 'node',
Expand Down
1 change: 1 addition & 0 deletions backend/uno-game-engine/deck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function makeCard(
if (!sameCardCount[id]) sameCardCount[id] = 0;
sameCardCount[id]++; // increment the count of same cards to assign unique id


const uid = `${id}-${sameCardCount[id]}`;
return { type, color, value, id: uid };
}
Expand Down

0 comments on commit 638c172

Please sign in to comment.