generated from EthSign/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
89 lines (89 loc) · 2.6 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"ignorePatterns": [
"dist",
"node_modules",
"subgraph",
"playground.ts",
"deploy-tt-suite.ts",
"mint-mockerc20.ts",
"upgrade.ts"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"],
"ecmaVersion": 12
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"rules": {
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-promise-executor-return": "error",
"no-self-compare": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "error",
"require-atomic-updates": "error",
"arrow-body-style": ["error", "as-needed"],
"block-scoped-var": "error",
"camelcase": ["error",{ "properties": "always" }],
"curly": ["error","all"],
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"max-depth": ["error", { "max": 4 }],
"multiline-comment-style": ["error", "starred-block"],
"no-array-constructor": "error",
"no-bitwise": "error",
"no-console": "error",
"no-continue": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-extra-label": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-shadow": "error",
"no-undefined": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"one-var-declaration-per-line": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"spaced-comment": "error",
"strict" : "error",
"arrow-spacing": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{"checksConditionals": true,"checksVoidReturn": false}
],
"prettier/prettier": "error"
}
}