forked from WalletConnect/solib
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.json
99 lines (99 loc) · 2.65 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": [
"*.d.ts",
"*.config.js",
"server.js",
"Whatamesh.ts",
"dist",
"node_modules",
"out",
"_next"
],
"parserOptions": {
"project": [
"tsconfig.json"
]
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:all",
"plugin:@typescript-eslint/all",
"prettier"
],
"rules": {
"no-console": 0,
"sort-imports": "off",
"one-var": "off",
"sort-keys": "off",
"id-length": "off",
"no-ternary": "off",
"max-classes-per-file": "off",
"max-lines-per-function": "off",
"max-statements": "off",
"no-undefined": "off",
"new-cap": "off",
"max-params": "off",
"complexity": "off",
"max-depth": "off",
"no-undef-init": "off",
// "curly": [
// "error",
// "multi"
// ],
"max-lines": "off",
"require-atomic-updates": "off",
"arrow-body-style": "off",
"func-style": [
"error",
"declaration"
],
"newline-before-return": "error",
"camelcase": "off",
"class-methods-use-this": "off",
"prefer-destructuring": 0,
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "h"
}
],
"@typescript-eslint/no-confusing-void-expression": [
"error",
{
"ignoreArrowShorthand": true
}
],
"@typescript-eslint/member-ordering": "off"
}
}