Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Typescript Migration #65

Open
wants to merge 48 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
dc4bdc3
fix: added dist folder to gitignore
wolfendale May 19, 2024
72e5dd7
chore: updates tsconfig and eslint settings
wolfendale May 19, 2024
feeedc2
fix: adds offset to topics/more
wolfendale May 19, 2024
3cda3a1
chore: addresses eslint errors
wolfendale May 19, 2024
404ab92
chore: adds missing types for ts compilation
wolfendale May 19, 2024
95c5471
chore: add missing types for ts compilation in util.ts
wolfendale May 20, 2024
195d395
chore: update communities models to typescript
wolfendale May 20, 2024
7b1ec65
chore: update post model to typescript
wolfendale May 20, 2024
15de7b2
chore: upgrade content model to typescript
wolfendale May 20, 2024
8556040
chore: update conversation models to typescript
wolfendale May 20, 2024
6413669
chore: update endpoint model to typescript
wolfendale May 20, 2024
307b943
chore: update notifications model to typescript
wolfendale May 20, 2024
d2201c2
chore: update report model to typescript
wolfendale May 20, 2024
8a64e09
chore: update settings model to typescript
wolfendale May 20, 2024
03c4853
chore: update logger to typescript
wolfendale May 20, 2024
53ea63b
chore: update redisClient to typescript
wolfendale May 20, 2024
1bad409
chore: update database to typescript
wolfendale May 21, 2024
28ab984
chore: update util to typescript
wolfendale May 21, 2024
4e17926
chore: update detectVersion to typescript
wolfendale May 21, 2024
884705d
chore: update discovery to typescript
wolfendale May 21, 2024
8777392
chore: update staticFiles to typescript
wolfendale May 21, 2024
1579148
chore: update webAuth to typescript
wolfendale May 21, 2024
b9dc0a0
chore: update consoleAuth to typescript
wolfendale May 21, 2024
c40568e
chore: update checkBan to typescript
wolfendale May 21, 2024
78e97bd
chore: update admin to typescript
wolfendale May 21, 2024
aeb5276
chore: update login to typescript
wolfendale May 21, 2024
2e484de
chore: update pwa to typescript
wolfendale May 21, 2024
b6bae1f
chore: update robots to typescript
wolfendale May 21, 2024
aba6a07
chore: update web to typescript
wolfendale May 21, 2024
1e619cd
chore: update show to typescript
wolfendale May 21, 2024
620ce97
chore: update notifications to typescript
wolfendale May 21, 2024
56da4c7
chore: update topics to typescript
wolfendale May 21, 2024
b1ba6ca
chore: update feed to typescript
wolfendale May 21, 2024
ba8036a
chore: update communities to typescript
wolfendale May 22, 2024
3bbb3a9
chore: update userPage to typescript
wolfendale May 22, 2024
aeb3a45
chore: update posts to typescript
wolfendale May 22, 2024
5b291fa
chore: update messages to typescript
wolfendale May 22, 2024
995cbfb
chore: update index files to typescript
wolfendale May 22, 2024
1dc9984
chore: update server to typescript
wolfendale May 22, 2024
4f2fa77
chore: make pid and user mandatory on request interface
wolfendale May 22, 2024
562f587
chore: fix tab size on types files
wolfendale May 23, 2024
48e64c4
chore: organized import ordering
wolfendale May 23, 2024
fbccb0a
fix: reimplement BigInt shim
wolfendale May 23, 2024
901d6a6
chore: remove default exports
wolfendale May 23, 2024
5348b65
fix: add error handler back to server.ts
wolfendale May 27, 2024
1fd50a2
Merge remote-tracking branch 'origin/dev' into pr/65
CaramelKat Jul 23, 2024
c54e44f
Apply suggestions from code review
CaramelKat Jul 24, 2024
52b47f7
chore: remove rest of "grpc." prefixs from utils.ts
CaramelKat Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dist
*.min.js
*.min.js
# temporarily disable eslint in webfiles as settings aren't right
src/webfiles/*
37 changes: 26 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"commonjs": true,
"es6": true
},
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"globals": {
"BigInt": true
Expand All @@ -12,10 +15,10 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/keyword-spacing": "error",
"require-atomic-updates": "warn",
"no-case-declarations": "off",
"no-empty": "off",
Expand All @@ -25,15 +28,8 @@
"prefer-const": "error",
"no-var": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/typedef": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": "error",
"curly": "error",
"brace-style": "error",
"one-var": [
Expand All @@ -55,5 +51,24 @@
"error",
"always"
]
}
},
"overrides": [
{
"files": ["**/*.ts", "**/*.d.ts"],
"rules": {
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/typedef": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }]
}
},
{
"files": ["**/*.js"],
"rules": {
// This rule does not work for js files
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ config.json
certs
src/logs
uploads
dist/
Loading