-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
28 lines (28 loc) · 1.02 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-throw-literal": "error"
}
}