-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsheriff.config.ts
More file actions
36 lines (28 loc) · 976 Bytes
/
sheriff.config.ts
File metadata and controls
36 lines (28 loc) · 976 Bytes
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
import { sameTag, SheriffConfig } from '@softarc/sheriff-core';
export const config: SheriffConfig = {
enableBarrelLess: true,
modules: {
'src/app/domains/<domain>': {
'feature-<name>': ['domain:<domain>', 'type:feature'],
'ui-<name>': ['domain:<domain>', 'type:ui'],
'data-<name>': ['domain:<domain>', 'type:data'],
'util-<name>': ['domain:<domain>', 'type:util'],
data: ['domain:<domain>', 'type:data'],
ui: ['domain:<domain>', 'type:ui'],
util: ['domain:<domain>', 'type:util'],
ai: ['domain:<domain>', 'type:ai'],
},
'src/app/testing': ['testing'],
},
depRules: {
root: '*',
'domain:*': [sameTag, 'domain:shared'],
'type:ai': ['type:feature', 'type:ui', 'type:data', 'type:util'],
'type:feature': ['type:ui', 'type:data', 'type:util'],
'type:ui': ['type:data', 'type:util'],
'type:data': ['type:util'],
'type:util': [],
testing: '*',
'*': ['testing'],
},
};