-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
120 lines (120 loc) · 2.34 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"env": {
"amd": true,
"node": true,
"browser": true
},
"globals": {
"WEBPACK_IS_SSR": true
},
"plugins": [
"react",
"import",
"compat",
"eslint-comments",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:import/recommended",
"plugin:compat/recommended",
"plugin:eslint-comments/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"map": [
[
"@config",
"./config"
],
[
"@src",
"./src"
]
]
},
"typescript": {}
}
},
"rules": {
"import/no-unresolved": [
"error",
{
"ignore": [
"^dist/*",
"^output/*"
]
}
],
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "ignore"
}
],
"quotes": [
"error",
"single"
],
"quote-props": [
"error",
"as-needed"
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"no-trailing-spaces": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^[_]*$"
}
],
"max-len": ["error", { "code": 120, "ignoreComments": true }],
"object-curly-spacing": ["error", "always"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-tag-spacing": "error",
"indent": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"import/default": "off",
"import/namespace": "off",
"react/prop-types": "off",
"react/display-name": "off"
}
}