-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
97 lines (96 loc) · 2.79 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
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["node_modules/", "build/"],
"plugins": [
"@typescript-eslint",
"prettier",
"sort-keys-fix",
"typescript-sort-keys",
"json",
"import",
"simple-import-sort",
"no-secrets"
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:json/recommended",
"plugin:prettier/recommended"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"rules": {
"no-secrets/no-secrets": ["off"],
"workspaces/require-dependency": ["off"],
"prettier/prettier": "warn",
"semi": ["warn", "never"],
"@typescript-eslint/semi": ["warn", "never"],
"no-tabs": ["error"],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"require-await": "error",
"sort-keys": ["warn", "asc", { "caseSensitive": true, "natural": false, "minKeys": 2 }],
"typescript-sort-keys/interface": "warn",
"typescript-sort-keys/string-enum": "warn",
"sort-keys-fix/sort-keys-fix": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"quotes": [2, "single", "avoid-escape"],
"max-statements": ["error", 32],
"max-depth": ["error", 6],
"complexity": ["error", 20],
"max-lines": ["error", { "max": 512, "skipBlankLines": true }],
"max-nested-callbacks": ["error", 6],
"import/no-named-as-default": ["off"],
"import/no-self-import": ["warn"],
"import/no-absolute-path": ["warn"],
"import/no-internal-modules": [ "off", {
"allow": [
"react-icons/*",
"*/img/**",
"source-map-support/*",
"lodash/*",
"@material-ui/**",
"aws-sdk/**",
"firebase/**",
"@ethersproject/**",
"aos/**",
"filepond*/**",
"pure-react-carousel/**",
"mapbox-gl/**",
"react-share/**",
"sdk-xyoworld-typechain/**",
"react-git-info/**",
"react-player/**"
]
} ],
"import/no-restricted-paths": ["warn"],
"import/namespace": ["warn"],
"import/no-cycle": ["warn"],
"import/no-useless-path-segments": ["warn"],
"simple-import-sort/imports": ["warn"],
"simple-import-sort/exports": ["warn"],
"workspaces/no-relative-imports": ["off"],
"workspaces/no-absolute-imports": ["off"]
}
}