forked from tribes-protocol/ayaos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
123 lines (123 loc) · 3.44 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"env": {
"es2021": true,
"node": true,
"jasmine": true
},
"ignorePatterns": "**/build/*.ts",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"standard",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "jasmine", "prettier"],
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"packageDir": [".", "../../"],
"devDependencies": true
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-restricted-imports": [
"error",
{
"patterns": ["../*", "./*"]
}
],
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/no-floating-promises": "error",
"no-void": "off",
"max-len": [
"error",
{
"code": 100,
"ignoreStrings": true
}
],
"eqeqeq": ["error", "always"],
"radix": ["error", "as-needed"],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowConciseArrowFunctionExpressionsStartingWithVoid": true
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/no-useless-constructor": ["error"],
"@typescript-eslint/no-non-null-assertion": "error",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lodash",
"importNames": ["isNull"],
"message": "Please use isNull from @tribes/core instead."
},
{
"name": "ethers",
"importNames": ["logger"],
"message": "Please use logger from @tribes/core instead."
},
{
"name": "console",
"importNames": ["assert"],
"message": "Please use assert from 'assert' instead."
},
{
"name": "aws-sdk",
"importNames": ["DynamoDB"],
"message": "Please import AWS and use as AWS.DynamoDB instead."
},
{
"name": "@wagmi/core",
"importNames": ["getPublicClient"],
"message": "Do not use getPublicClient directly. Use basePublicClient instead."
},
{
"name": "@reown/appkit/networks",
"importNames": ["base", "mainnet"],
"message": "Do not use base directly. Use supported_chains instead."
}
]
}
],
"prettier/prettier": "error",
"no-async-promise-executor": "off",
"space-before-function-paren": "off",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "never"
}
]
}
}