Skip to content

Commit

Permalink
Convert to typescript?
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsuperplane committed Oct 10, 2019
1 parent eaf155b commit 3ba18e4
Show file tree
Hide file tree
Showing 29 changed files with 2,482 additions and 941 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*.{js,ts}]
indent_style = space
indent_size = 2
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015,
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"prettier/prettier": "error",
"indent": 0,
"camelcase": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": "off"
},
"plugins": [
"@typescript-eslint"
]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
config.js
config/index.ts
storage
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
{
"language": "typescript",
"autoFix": true
},
]
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ start:
serveo:
npm run serveo

format:
npm run format
lint:
npm run lint
4 changes: 2 additions & 2 deletions kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ spec:
image: gcr.io/htn-techyon/mentorship-slackbot
volumeMounts:
- name: mentorship-slackbot-secret
mountPath: /srv/config.js
mountPath: /srv/src/config/index.ts
readOnly: true
subPath: config.js
subPath: config.ts
- name: mentorship-slackbot-disk
mountPath: /srv/storage
resources:
Expand Down
Loading

0 comments on commit 3ba18e4

Please sign in to comment.