-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
72 lines (72 loc) · 1.73 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
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"plugins": [
"@typescript-eslint",
"json"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-extraneous-class": [
"error",
{
"allowStaticOnly": true
}
],
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/unbound-method": [
"error",
{
"ignoreStatic": true
}
],
"@typescript-eslint/promise-function-async": [
"error",
{
"checkArrowFunctions": true,
"checkFunctionDeclarations": true,
"checkFunctionExpressions": true,
"checkMethodDeclarations": true
}
],
"no-console": "off",
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": "off",
"strict": "off"
},
"env": {
"mocha": true,
"node": true,
"es6": true
},
"globals": {
"artifacts": false,
"contract": false,
"assert": false
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}