-
Notifications
You must be signed in to change notification settings - Fork 112
/
.eslintrc
69 lines (69 loc) · 1.81 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
60
61
62
63
64
65
66
67
68
69
{
"root": true,
"extends": "@colony/eslint-config-colony",
"env": {
"node": true,
"mocha": true
},
"globals": {
"web3": true,
"assert": true,
"contract": true
},
"settings": {
"import/resolver": {
"typescript": {
"project" : "./tsconfig.json"
},
"node": {
"extensions": [".js", ".ts", ".tsx"]
}
}
},
"rules": {
"import/no-extraneous-dependencies": [2, {"devDependencies": true}],
"max-len": [2, { "code": 150, "ignoreComments": true }],
"prettier/prettier": ["error", {"printWidth": 150}],
"import/named": "off",
"func-names": "off",
"no-console": "off",
"no-unused-expressions": "off",
"eslint-comments/no-unlimited-disable": "off",
"no-await-in-loop": "off",
"no-underscore-dangle": "off",
"no-trailing-spaces": "error",
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"no-only-tests/no-only-tests": ["error", {"block": ["contract", "it"], "focus": ["only"]}],
"eslint-comments/disable-enable-pair": ["error", {"allowWholeFile": true}],
"space-infix-ops": ["error"],
"no-restricted-syntax": "off",
"import/no-unresolved": "off", // This is handled by the typescript resolver
"import/no-relative-packages": "off", // Required for monorepo-esque structure
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": [
"no-only-tests"
],
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": [
"@typescript-eslint"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser"
}
]
}