-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
.eslintrc.json
94 lines (93 loc) · 3.09 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:all",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:@typescript-eslint/strict-type-checked",
"prettier"
],
"parserOptions": {
"project": ["tsconfig.json"]
},
"ignorePatterns": [
"node_modules",
"*.config.js",
"next-env.d.ts",
"out",
"dist",
".next",
".turbo",
"examples"
],
"rules": {
// Core
"func-style": ["error", "declaration"],
"newline-before-return": "error",
"one-var": ["error", "never"],
"no-console": ["error", { "allow": ["warn"] }],
"curly": "error",
"sort-imports": "off",
"sort-keys": "off",
"camelcase": "off",
"no-ternary": "off",
"no-duplicate-imports": "off",
"max-lines-per-function": "off",
"max-statements": "off",
"no-undefined": "off",
"prefer-destructuring": "off",
"class-methods-use-this": "off",
"id-length": "off",
"max-lines": "off",
"no-async-promise-executor": "off",
"no-underscore-dangle": "off",
"no-undef-init": "off",
"complexity": "off",
"no-magic-numbers": "off",
"no-use-before-define": "off",
"require-atomic-updates": "off",
"no-bitwise": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lit/decorators.js",
"importNames": ["customElement"],
"message": "Use import 'customElement' from '@web3modal/ui' instead."
}
]
}
],
// Typescript
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unsafe-argument": "off"
}
}