Skip to content

Commit 714eaa5

Browse files
committed
updating legacy code
1 parent 08960ac commit 714eaa5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+266
-185
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"sourceType": "module"
1616
},
1717
"ignorePatterns": [
18-
"build" // Ignore built files
18+
"build",
19+
"*.js",
20+
"*.d.ts"
1921
],
2022
"plugins": [
2123
"@typescript-eslint"

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
# nodejs
44
npm-debug.log*
5-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
65
package-lock.json
76
node_modules/
87

98
# env
109
.env
11-
.env.test
12-
.env.local
10+
.env.development.local
1311
.env.test.local
1412
.env.production.local
15-
.env.development.local
13+
.env.local
1614

1715
# vscode
1816
.vscode/
@@ -41,4 +39,6 @@ docs/
4139

4240
# test
4341
test/
44-
tests/
42+
tests/
43+
44+
coverage/

.prettierignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.git/
2-
.github/
32

43
# nodejs
54
npm-debug.log*
6-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
75
package.json
86

97
# log
@@ -19,6 +17,5 @@ npm-debug.log*
1917

2018
# project
2119
LICENSE
22-
tsconfig.tsbuildinfo
2320

2421
build/

.prettierrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"embeddedLanguageFormatting": "auto",
32
"printWidth": 200,
4-
"requirePragma": false,
5-
"semi": true,
6-
"singleQuote": false,
73
"tabWidth": 4,
8-
"trailingComma": "none"
4+
"singleQuote": false,
5+
"trailingComma": "none",
6+
"arrowParens": "avoid"
97
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2023 ING Project
3+
Copyright (c) 2022-2024 ING Project
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

TODO.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212

1313
### Typescript
1414

15-
**@/riot-api**
16-
17-
| Type | Name | Progression |
18-
| ------- | ------- | ----------- |
19-
| Service | MatchV1 | Missing |
20-
2115
**@/web-client**
2216

2317
| Type | Name | Progression |
@@ -28,7 +22,7 @@
2822
| Service | ContractDefinitions | Not Done |
2923
| Service | Contracts | Not Done |
3024
| Service | CoreGame | Not Done |
31-
| Service | DailyTicket | Not Done |
25+
| Service | DailyTicket | Done |
3226
| Service | DisplayNameService | Done |
3327
| Service | Favorites | Done |
3428
| Service | Latency | Done |
@@ -43,20 +37,4 @@
4337
| Service | Session | Done |
4438
| Service | Store | Done |
4539

46-
-----------
47-
48-
### WAIT_FOR_TEST
49-
50-
Party
51-
- CustomGame.setBalance
52-
- Member.*
53-
- !get
54-
- !setReady
55-
56-
CoreGame
57-
58-
Match
59-
60-
PreGame
61-
62-
Premier
40+
-----------

jest.config.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} */
22
module.exports = {
3-
preset: 'ts-jest',
4-
transform: {
5-
'^.+\\.m?[tj]sx?$': [
6-
'ts-jest',
7-
{
8-
tsconfig: 'tsconfig.test.json'
9-
},
3+
transform: {
4+
"^.+\\.tsx?$": [
5+
"ts-jest",
6+
{
7+
tsconfig: "tsconfig.test.json"
8+
},
9+
],
10+
},
11+
testEnvironment: "node",
12+
clearMocks: true,
13+
collectCoverage: true,
14+
coverageDirectory: "coverage",
15+
setupFiles: [
16+
"dotenv/config"
1017
],
11-
},
12-
testEnvironment: 'node',
13-
clearMocks: true,
14-
collectCoverage: true,
15-
coverageDirectory: "coverage",
16-
coverageProvider: "v8",
17-
setupFiles: [
18-
"dotenv/config",
19-
"./jest.setup.js"
20-
],
21-
};
18+
// 3 minute
19+
testTimeout: 3 * 60 * 1000
20+
}

jest.setup.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"format": "prettier --config ./.prettierrc --ignore-path ./.prettierignore --write \"packages/**/*\"",
3434
"lint": "npx eslint packages",
3535
"compile": "npx tsc --build tsconfig.json",
36-
"compile:clean": "npm exec --workspaces -- npx rimraf \"build\" \"tsconfig.tsbuildinfo\"",
36+
"compile:clean": "npm exec --workspaces -- rimraf \"build\" \"tsconfig.tsbuildinfo\"",
3737
"docs": "typedoc",
3838
"docs:clean": "rimraf \"docs\"",
3939
"clean": "npm run compile:clean && npm run docs:clean",

0 commit comments

Comments
 (0)