forked from ERC725Alliance/erc725.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
87 lines (87 loc) · 2.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules"],
"paths": ["."]
}
}
},
"rules": {
// TYPESCRIPT
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
// OTHER
"no-shadow": "off",
"no-console": "off",
"import/extensions": [
"error",
"always",
{ "ts": "never", "js": "never" }
],
"max-classes-per-file": ["error", 3],
"max-len": [
"error",
{
"code": 120,
"ignoreComments": true,
"ignoreStrings": true
}
],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"indent": ["error", 4],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-multiple-empty-lines": ["error", { "max": 2 }],
"padded-blocks": ["error", "always", { "allowSingleLineBlocks": true }],
"lines-between-class-members": ["error", "always"],
"arrow-parens": [
"error",
"as-needed",
{ "requireForBlockBody": false }
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "var", "next": "return" },
{ "blankLine": "always", "prev": "block-like", "next": "return" }
],
"prefer-template": 0, // Allow simple string concatenation
"comma-dangle": [
"error",
{
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}
],
"no-await-in-loop": 0, // NOTE: This should be removed?
"import/prefer-default-export": 0
},
"ignorePatterns": ["node_modules/**/*", "build/**/*"]
}