Skip to content

Commit b4252c5

Browse files
committed
style: linter changed from tslint to eslint
1 parent ac52a00 commit b4252c5

27 files changed

+937
-485
lines changed

.eslintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint"],
4+
"extends": ["plugin:@typescript-eslint/recommended"],
5+
"parserOptions": {
6+
"ecmaVersion": 2019,
7+
"sourceType": "module"
8+
},
9+
"rules": {
10+
"quotes": ["error", "single"],
11+
"no-use-before-define": "off",
12+
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": false }]
13+
}
14+
}

.huskyrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint && npm run test"
4+
}
5+
}

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"printWidth": 120
2+
"printWidth": 120,
3+
"singleQuote": true
34
}

0 commit comments

Comments
 (0)