-
Notifications
You must be signed in to change notification settings - Fork 95
/
.eslintrc.json
105 lines (105 loc) · 2.48 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
{
"extends": ["next/core-web-vitals"],
"plugins": ["boundaries"],
"settings": {
"boundaries/include": ["src/**/*", "app/**/*", "di/**/*"],
"boundaries/elements": [
{
"mode": "full",
"type": "web",
"pattern": ["app/**/*"]
},
{
"mode": "full",
"type": "controllers",
"pattern": ["src/interface-adapters/controllers/**/*"]
},
{
"mode": "full",
"type": "use-cases",
"pattern": ["src/application/use-cases/**/*"]
},
{
"mode": "full",
"type": "service-interfaces",
"pattern": ["src/application/services/**/*"]
},
{
"mode": "full",
"type": "repository-interfaces",
"pattern": ["src/application/repositories/**/*"]
},
{
"mode": "full",
"type": "entities",
"pattern": ["src/entities/**/*"]
},
{
"mode": "full",
"type": "infrastructure",
"pattern": ["src/infrastructure/**/*"]
},
{
"mode": "full",
"type": "di",
"pattern": ["di/**/*"]
}
]
},
"rules": {
"boundaries/no-unknown": "error",
"boundaries/no-unknown-files": "error",
"boundaries/element-types": [
"error",
{
"default": "disallow",
"rules": [
{
"from": "web",
"allow": ["web", "entities", "di"]
},
{
"from": "controllers",
"allow": [
"entities",
"service-interfaces",
"repository-interfaces",
"use-cases"
]
},
{
"from": "infrastructure",
"allow": ["service-interfaces", "repository-interfaces", "entities"]
},
{
"from": "use-cases",
"allow": ["entities", "service-interfaces", "repository-interfaces"]
},
{
"from": "service-interfaces",
"allow": ["entities"]
},
{
"from": "repository-interfaces",
"allow": ["entities"]
},
{
"from": "entities",
"allow": ["entities"]
},
{
"from": "di",
"allow": [
"di",
"controllers",
"service-interfaces",
"repository-interfaces",
"use-cases",
"infrastructure"
]
}
]
}
]
}
}