-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
91 lines (90 loc) · 2.94 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
86
87
88
89
90
91
{
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": false
}
},
"env": {
"node": true,
"jasmine": true
},
"rules": {
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"guard-for-in": "error",
"no-alert": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-constant-condition": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-else-return": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-eq-null": "error",
"no-ex-assign": "error",
"no-extend-native": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"no-invalid-this": "error",
"no-irregular-whitespace": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal": "error",
"no-negated-in-lhs": "error",
"no-obj-calls": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-unreachable": "error",
"no-unexpected-multiline": "error",
"no-unused-expressions": "error",
"no-use-before-define": "off",
"use-isnan": "error",
"valid-typeof": "error",
"array-bracket-spacing": ["error", "never"],
"max-len": ["error", 120],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "self"],
"eol-last": "error",
"new-cap": "error",
"new-parens": "error",
"no-mixed-spaces-and-tabs": "error",
"no-nested-ternary": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"keyword-spacing": ["error", {"before": true, "after": true}],
"space-before-blocks": ["error", "always"],
"@typescript-eslint/explicit-function-return-type": "off",
"camelcase": ["error", { "properties": "never" }],
"@typescript-eslint/ban-ts-ignore": "off",
"no-unused-vars": "off",
"strict": ["error", "never" ],
"no-var": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-shadow": ["error"]
},
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended", "eslint-config-prettier"]
}
]
}