Skip to content

Commit

Permalink
feat: Convert tick detector to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Nov 23, 2021
1 parent f4eea0f commit d3b7319
Show file tree
Hide file tree
Showing 26 changed files with 8,554 additions and 3,063 deletions.
3 changes: 0 additions & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copyright/Apache_2_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/Typescript.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@
"start:dev:frontend": "npm run startdev --prefix frontend",
"start:dev:guild_bot": "npm run startdev --prefix guild_bot",
"start:dev:tick_listener": "npm run startdev --prefix tick_listener",
"start:dev:tick_detector": "npm run startdev --prefix tick_detector",
"start": "run-p start:frontend start:backend start:eddn_listener start:guild_bot start:tick_listener",
"start:backend": "npm run start --prefix backend",
"start:eddn_listener": "npm run start --prefix eddn_listener",
"start:frontend": "npm run build --prefix frontend",
"start:guild_bot": "npm run start --prefix guild_bot",
"start:tick_listener": "npm run start --prefix tick_listener",
"start:tick_detector": "npm run start --prefix tick_detector",
"versionfile": "node ./versionFile.js",
"lint:fix": "run-p lint:fix:backend lint:fix:eddn_listener lint:fix:frontend lint:fix:guild_bot lint:fix:tick_listener",
"lint:fix:backend": "npm run lint:fix --prefix backend",
"lint:fix:eddn_listener": "npm run lint:fix --prefix eddn_listener",
"lint:fix:frontend": "npm run lint:fix --prefix frontend",
"lint:fix:guild_bot": "npm run lint:fix --prefix guild_bot",
"lint:fix:tick_listener": "npm run lint:fix --prefix tick_listener"
"lint:fix:tick_listener": "npm run lint:fix --prefix tick_listener",
"lint:fix:tick_detector": "npm run lint:fix --prefix tick_detector"
},
"private": true,
"devDependencies": {
Expand Down
15 changes: 9 additions & 6 deletions tick_detector/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
root: true,
env: {
commonjs: true,
es2017: true,
node: true
},
extends: ['eslint:recommended', 'plugin:prettier/recommended']
}
es2020: true,
node: true,
jest: true
}
};
12 changes: 2 additions & 10 deletions tick_detector/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"semi": false,
"singleQuote": true,
"endOfLine": "lf",
"trailingComma": "none",
"printWidth": 120,
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
"singleQuote": true,
"printWidth": 120
}
85 changes: 0 additions & 85 deletions tick_detector/bin/start.js

This file was deleted.

52 changes: 0 additions & 52 deletions tick_detector/bugsnag.js

This file was deleted.

60 changes: 0 additions & 60 deletions tick_detector/db.js

This file was deleted.

73 changes: 0 additions & 73 deletions tick_detector/detector.js

This file was deleted.

5 changes: 5 additions & 0 deletions tick_detector/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/'],
};
Loading

0 comments on commit d3b7319

Please sign in to comment.