Skip to content

Commit

Permalink
eslint: Fix CRLF issues.
Browse files Browse the repository at this point in the history
Not checking for line endings at all.
Also formatted all files using prettier.
  • Loading branch information
kuv2707 committed May 31, 2024
1 parent 909fcf8 commit 93e4c36
Show file tree
Hide file tree
Showing 5 changed files with 8 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
2 changes: 1 addition & 1 deletion backend/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"endOfLine": "lf"
"endOfLine": "crlf"
}
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
6 changes: 5 additions & 1 deletion backend/uno-game-engine/deck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ export function getShuffledCardDeck(): Array<UNOCard> {
* Helper function to make a card object.
* @returns {UNOCard} The composed UNO card.
*/
export function makeCard(type: CardType, color: CardColor, value: CardValue): UNOCard {
export function makeCard(
type: CardType,
color: CardColor,
value: CardValue
): UNOCard {
//todo: Implement unique identification of cards by assigning an id to each card
return { type, color, value, id: undefined };
}
Expand Down

0 comments on commit 93e4c36

Please sign in to comment.