-
Notifications
You must be signed in to change notification settings - Fork 152
/
.eslintrc
58 lines (58 loc) · 1.94 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": false
},
"project": "tsconfig.json"
},
"env": {
"node": true,
"jasmine": true
},
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"ordered-imports": "off",
"no-trailing-spaces": "error",
"max-classes-per-file": ["warn", 1],
"object-literal-sort-keys": "off",
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/typedef": "warn",
"@typescript-eslint/no-floating-promises": "error",
"curly": "error",
"no-empty": "off",
"no-invalid-this": "error",
"@typescript-eslint/no-throw-literal": "warn",
"prefer-const": "error",
"indent": ["error", 4],
"max-lines": ["warn", 500],
"no-duplicate-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/promise-function-async": "error",
"no-bitwise": "error",
"no-console": "error",
"no-debugger": "error",
"prefer-template": "error",
// Disable these as they were introduced by @typescript-eslint/recommended
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/interface-name-prefix": "off"
},
"overrides": [
{
"files": [
"test/**/*"
],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}