-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.1 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
],
"rules": {
"no-console": 1,
"no-debugger": 1,
"curly": 2,
"indent": [2, "tab"],
"max-len": [1, 80],
"no-empty": 1,
"@typescript-eslint/no-empty-interface": 1,
"no-eval": 2,
"@typescript-eslint/no-misused-new": "error",
"no-trailing-spaces": 2,
"no-irregular-whitespace": 2,
"no-use-before-define": 2,
"no-var": 2,
"prefer-const": 1,
"quotes": [2, "single"],
"radix": 2,
"semi": ["error", "always"],
"brace-style": 0,
"@typescript-eslint/brace-style": [2, "stroustrup"],
"@typescript-eslint/no-empty-function": 0,
"no-prototype-builtins": 1,
"no-useless-escape": 1,
"no-case-declarations": 1,
"@typescript-eslint/no-var-requires": 2,
"@typescript-eslint/promise-function-async": 1,
"@typescript-eslint/no-floating-promises": 2
}
}