-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
112 lines (112 loc) · 2.08 KB
/
.eslintrc.js
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
module.exports = {
ignorePatterns: [
"node_modules"
],
root: true,
extends: [
"standard",
"eslint:recommended",
"plugin:promise/recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"jsdoc",
"eslint-plugin-tsdoc",
"jest"
],
parserOptions: {
ecmaVersion: 2018
},
rules: {
"no-tabs": "off",
indent: [
"error",
"tab", {
SwitchCase: 1
}
],
semi: [
"error",
"always"
],
quotes: [
"error",
"double",
{
allowTemplateLiterals: true
}
],
"space-before-function-paren": [
"error",
{
anonymous: "never",
named: "never",
asyncArrow: "always"
}
],
camelcase: "off",
curly: [
"error",
"multi-or-nest"
],
"nonblock-statement-body-position": [
"error",
"below"
],
"no-unneeded-ternary": "off",
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"promise/always-return": "off",
"promise/no-callback-in-promise": "off",
"promise/no-promise-in-callback": "off",
"import/no-unresolved": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "interface",
format: ["PascalCase"],
prefix: ["I"]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/no-empty-function": "off",
"require-jsdoc": [
"error",
{
require: {
FunctionDeclaration: true,
MethodDefinition: false,
ClassDeclaration: true,
ArrowFunctionExpression: false,
FunctionExpression: false
}
}
]
},
overrides: [
{
files: [
"*.js"
],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"eslinttsdoc/syntax": "off",
tsdoc: "off",
"@typescript-eslint/interface-name-prefix": "off"
}
}
],
env: {
jest: true,
jasmine: true
}
};