Skip to content

Commit ad340d8

Browse files
authored
Merge pull request #4 from FlowSahl/feat/optimize-code-for-typescript
Optimize code for typescript
2 parents 554a534 + 2897981 commit ad340d8

12 files changed

+1608
-358
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:prettier/recommended"
7+
],
8+
"parserOptions": {
9+
"ecmaVersion": 2020,
10+
"sourceType": "module"
11+
},
12+
"rules": {
13+
"prettier/prettier": "error",
14+
"@typescript-eslint/no-unused-vars": "warn"
15+
}
16+
}

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"semi": true,
33
"singleQuote": true,
44
"tabWidth": 2,
5-
"trailingComma": "es5"
5+
"trailingComma": "es5",
6+
"printWidth": 120
67
}

0 commit comments

Comments
 (0)