-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.json
46 lines (46 loc) · 924 Bytes
/
.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
{
"extends": ["./node_modules/mwts/"],
"plugins": ["unicorn", "import"],
"ignorePatterns": [
"node_modules",
"dist",
"test",
"jest.config.js",
"typings"
],
"env": {
"jest": true
},
"rules": {
"node/no-extraneous-import": [
"error",
{
"allowModules": ["typeorm", "ioredis", "@midwayjs/core"]
}
],
"unicorn/filename-case": 2,
"import/order": [
1,
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "@/**",
"group": "external",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always"
}
],
"no-console": [2, { "allow": ["warn", "error", "info"] } ]
}
}