Skip to content

Commit

Permalink
refactor: rewrite code with typescript and add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
w2xi committed Mar 10, 2024
1 parent 740799c commit e59d569
Show file tree
Hide file tree
Showing 24 changed files with 5,198 additions and 6,608 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false

[.json]
trailing_comma = none
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {}
}
23 changes: 0 additions & 23 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
dist
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.md
dist
node_modules
.vscode
pnpm-lock.yaml
.release-it.json
.eslintrc
5 changes: 3 additions & 2 deletions .prettierrc.js → .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
export default {
trailingComma: 'es5',
tabWidth: 2,
semi: false,
singleQuote: true,
}
trailingComma: 'none'
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
Loading

0 comments on commit e59d569

Please sign in to comment.