-
Notifications
You must be signed in to change notification settings - Fork 0
/
sheriff.config.ts
23 lines (22 loc) · 942 Bytes
/
sheriff.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { sameTag, SheriffConfig } from '@softarc/sheriff-core';
export const sheriffConfig: SheriffConfig = {
version: 1,
excludeRoot: true,
tagging: {
'src/app/features/<featureType>/containers/<featureName>': ['type:container', 'feature:<featureType>'],
'src/app/features/<featureType>/data-access': ['type:data-access', 'feature:<featureType>'],
'src/app/shared/data-access/<featureType>': ['type:data-access', 'shared'],
'src/app/shared/ui': ['type:ui', 'shared'],
'src/app/shared/utils': ['type:utils', 'shared'],
'src/app/shared/utils/<type>': ['type:utils', 'shared'],
},
depRules: {
'type:app': ['type:ui', 'type:ui', 'type:data-access', 'type:utils'],
'type:ui': ['type:utils'],
'type:container': ['type:ui', 'type:data-access', 'type:utils'],
'type:data-access': ['type:utils'],
'type:utils': ['type:utils'],
'feature:*': [sameTag, 'shared'],
shared: 'shared',
},
};