-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.json
110 lines (110 loc) · 2.41 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
{
"root": true,
"plugins": [
"jsx",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/recommended"
],
"rules": {
"prettier/prettier": "error",
"jsx/uses-factory": [1, { "pragma": "JSX" }],
"jsx/factory-in-scope": 0,
"jsx/mark-used-vars": 1,
"jsx/no-undef": 1,
"no-redeclare": 0,
"import/order": [
"error",
{
"groups": ["external", "builtin", ["parent", "sibling"], "index"],
"pathGroups": [
{
"pattern": "gl-matrix",
"group": "external",
"position": "before"
},
{
"pattern": "sapa",
"group": "builtin",
"position": "before"
},
{
"pattern": "apps",
"group": "builtin",
"position": "before"
},
{
"pattern": "elf",
"group": "builtin",
"position": "before"
},
{
"pattern": "plugins",
"group": "builtin",
"position": "before"
},
{
"pattern": "types",
"group": "builtin",
"position": "before"
},
{
"pattern": "**/*.scss",
// "patternOptions": { "matchBase": true },
"group": "index",
"position": "after"
}
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always",
"warnOnUnassignedImports": true
}
]
},
"settings": {
"import/resolver": {
"jsconfig": {
"config": "jsconfig.json"
}
}
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"window": true,
"document": true,
"console": true,
"Proxy": true,
"Promise": true,
"Symbol": true,
"__dirname": true,
"Map": true,
"Set": true,
"WeakMap": true,
"WeakSet": true
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": [
"@typescript-eslint"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
]
}