-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
59 lines (59 loc) · 1.73 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
59
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"semi": ["error", "never"],
"linebreak-style": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-console": "error",
"max-len": ["error", { "code": 120 }],
"@typescript-eslint/no-explicit-any": "error",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"no-restricted-syntax": "off",
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["valueBag"] }],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-use-before-define": "off",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-useless-constructor": "off",
"indent": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-empty-function": "off",
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
"no-plusplus": "off",
"no-underscore-dangle": ["error"],
"no-await-in-loop": "off",
"complexity": ["error", { "max": 4 }],
"class-methods-use-this": "off",
"@typescript-eslint/consistent-type-imports": ["error", { "fixStyle": "inline-type-imports" }]
},
"env": {
"es2020": true,
"node": true
},
"overrides": [
{
"files": ["test/**/*"],
"env": {
"jest": true
}
},
{
"files": ["benchmark/**/*"],
"rules": {
"no-console": "off"
}
}
]
}