-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
86 lines (86 loc) · 2 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
{
"env": {
"es6": true,
"node": true,
"jest": true,
"browser": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["import", "react-hooks"],
"ignorePatterns": [".eslintrc.js"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"globals": {
"GIT_VERSION": true,
"IS_DEVELOPMENT": true
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "error",
"no-redeclare": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"import/no-unresolved": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", ["index", "sibling"]],
"pathGroups": [
{ "pattern": "@test/**", "position": "after", "group": "builtin" },
{ "pattern": "@/**", "position": "after", "group": "external" }
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/no-useless-path-segments": [
"error",
{
"noUselessIndex": true
}
],
"react-hooks/rules-of-hooks": "error"
},
"overrides": [
{
"files": ["test/**/*.{js,ts,tsx}"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-expressions": "off"
}
},
{
"files": ["**/__generated__/**/*.{js,ts,tsx}"],
"rules": {
"import/order": "off"
}
},
{
"files": ["src/common/logger/*.ts"],
"rules": {
"no-console": "off"
}
}
]
}