Skip to content

Commit

Permalink
migrate to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Miquel Martín committed Oct 29, 2023
1 parent 2cecbc1 commit d93cfcd
Show file tree
Hide file tree
Showing 31 changed files with 3,072 additions and 1,728 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"presets": [
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"targets": {
"node": "6"
"node": "current"
}
}
]
Expand Down
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# don't ever lint node_modules
node_modules
**/node_modules/**/*
build
# don't lint build output (make sure it's set to your correct build folder name)
lib
logs
typings
# don't lint nyc coverage output
coverage
.eslintrc.js
4 changes: 4 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ~/.huskyrc
# This loads nvm.sh and sets the correct PATH before running hook
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
10 changes: 10 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extension": ["ts"],
"spec": "test/**/*.ts",
"require": [
"@babel/register",
"ts-node/register",
"source-map-support/register"
],
"recursive": true
}
Loading

0 comments on commit d93cfcd

Please sign in to comment.