-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
87 lines (87 loc) · 2.11 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
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parserOptions": {
"project": ["tsconfig.json"],
"tsconfigRootDir": "./",
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"eslint-plugin-import",
"import"
],
"rules": {
"import/no-unresolved": "off",
"import/named": "warn",
"import/namespace": "warn",
"import/no-named-as-default": "off",
"import/export": "warn",
"import/newline-after-import": ["error", {"count": 1}],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index",
"unknown"
],
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
},
{
"pattern": "{.,..}/*.scss",
"group": "unknown",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"warnOnUnassignedImports": true,
"alphabetize": {"order": "asc", "caseInsensitive": true}
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
"react/no-unescaped-entities": [
"error",
{
"forbid": [">", "}", "\""]
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
}