forked from ERC725Alliance/erc725.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (64 loc) · 1.88 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
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules"],
"paths": ["."]
}
}
},
"rules": {
"prettier/prettier": "error",
// 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
"class-methods-use-this": "off",
"no-shadow": "off",
"no-console": "off",
"import/extensions": ["error", "always", { "ts": "never", "js": "never" }],
"max-classes-per-file": ["error", 3],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"lines-between-class-members": "off",
"prefer-template": 0, // Allow simple string concatenation
"no-await-in-loop": 0, // NOTE: This should be removed?
"import/prefer-default-export": 0,
"arrow-body-style": "off",
"no-bitwise": "off"
},
"ignorePatterns": ["node_modules/**/*", "build/**/*"]
}