-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
80 lines (77 loc) · 1.81 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["prettier"],
"env": {
"es6": true,
"commonjs": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 9
},
"rules": {
"strict": [2, "global"],
"no-duplicate-imports": [2, { "includeExports": true }],
"eqeqeq": 2,
"block-scoped-var": 2,
"no-constant-condition": 2,
"no-console": 2,
"no-debugger": 2,
"no-lonely-if": 2,
"no-lone-blocks": 2,
"no-nested-ternary": 2,
"no-dupe-keys": 2,
"no-extra-boolean-cast": 2,
"no-irregular-whitespace": 2,
"no-else-return": 2,
"no-eval": 2,
"no-multi-str": 2,
"no-self-compare": 2,
"no-useless-call": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-unreachable": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"radix": 2,
"curly": 2,
"no-fallthrough": 2,
"default-case": 2,
"no-var": 2,
"no-unused-expressions": 2,
"camelcase": [
2,
{
"properties": "always",
"allow": ["^UNSAFE_"]
}
],
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/type-annotation-spacing": 0,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-use-before-define": 2
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"no-use-before-define": 0,
"no-shadow": 0,
"no-undef": 0,
"no-unused-vars": 0
}
}
]
}