Add eslint for ts

This commit is contained in:
2021-03-10 13:49:04 +07:00
parent 589e0884e5
commit 52898734ab
3 changed files with 45 additions and 20 deletions

15
.eslintrc Normal file
View File

@@ -0,0 +1,15 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": 1,
"prettier/prettier": 2
}
}