Skip to content

Commit

Permalink
Typescript migration (#4)
Browse files Browse the repository at this point in the history
* Add Typescript

* Change file extensions to .ts

* Update npm scripts

* Add .nvmrc

* Setup linter and prettier

* Update tsconfig.json

* Refactor & prettify files

* Add more typings

* Remove unnecessary typing

* Fix import error

* Fixed an issue

* Fixed linting issues
  • Loading branch information
Mrtenz authored and MrLuit committed Sep 29, 2018
1 parent cae7a1b commit 5d82aee
Show file tree
Hide file tree
Showing 33 changed files with 3,412 additions and 1,606 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# http://editorconfig.org
root = true

[*]
end_of_line = lf
charset = utf-8
indent_size = 4
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.11
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 100,
"singleQuote": true,
"useTabs": false,
"semi": true,
"tabWidth": 4,
"trailingComma": "none"
}
6 changes: 4 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"ignore": [
"cache.db",
"data/*"
]
}
],
"ext": "ts",
"exec": "ts-node src/app.ts"
}
Loading

0 comments on commit 5d82aee

Please sign in to comment.