forked from reown-com/appkit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
74 lines (73 loc) · 2.48 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": [
"*.d.ts",
"*.config.js",
"server.js",
"libs",
"dist",
"node_modules",
"out",
"_next"
],
"parserOptions": {
"project": ["tsconfig.json"]
},
"env": {
"browser": true
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:all", "plugin:@typescript-eslint/all", "prettier"],
"rules": {
"sort-imports": "off",
"one-var": "off",
"sort-keys": "off",
"id-length": "off",
"no-ternary": "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",
"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",
"@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/restrict-template-expressions": "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"
}
}