-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
85 lines (85 loc) · 3.22 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
81
82
83
84
85
{
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"project": "./tsconfig.json"
},
"rules": {
"no-undef": "off",
"no-constant-condition": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/naming-convention": ["error",
{
"selector": "default",
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
},
{
"selector": "method",
"format": ["camelCase"]
},
{
"selector": "function",
"format": ["camelCase"]
},
{
"selector": "typeLike",
"format": ["PascalCase"]
}
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/type-annotation-spacing": ["error", { "before": false, "after": true, "overrides": { "arrow": { "before": true, "after": true }}}],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"prefer-arrow-callback": [ "error", { "allowUnboundThis": false } ],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-promises": [ "error", { "checksVoidReturn": false } ],
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/prefer-readonly": "error",
"no-return-await": "off",
"@typescript-eslint/return-await": "error",
"require-await": "off",
"@typescript-eslint/require-await": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "error",
"curly": "error",
"eol-last": "error",
"no-prototype-builtins": "off",
"no-caller": "error",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-eval": "error",
"no-invalid-this": "error",
"no-console": "off",
"no-trailing-spaces": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", { "initialized": "never", "uninitialized": "never" }],
"prefer-const": "error",
"quotes": ["error", "single", {"avoidEscape": true}],
"@typescript-eslint/semi": ["error", "never"],
"default-case": "error",
"eqeqeq": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"func-call-spacing": ["error", "never"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }]
}
}