File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,18 @@ module.exports = {
9
9
message :
10
10
'Do NOT use `Promise.allSettled` as it will be undefined. Use `allSettled` from `utils/allSettled.ts` instead.'
11
11
}
12
+ ] ,
13
+ 'no-restricted-imports' : [
14
+ 'error' ,
15
+ {
16
+ patterns : [
17
+ {
18
+ group : [ '@audius/sdk/dist*' ] ,
19
+ message :
20
+ 'Do not import from the SDK dist folder. If needed, update SDK to export the item you wish to use.'
21
+ }
22
+ ]
23
+ }
12
24
]
13
25
}
14
26
}
Original file line number Diff line number Diff line change @@ -57,6 +57,13 @@ module.exports = {
57
57
message :
58
58
'Use @audius/harmony-native instead. If needing to access an @audius/harmony export, reference it directly with @audius/harmony/src/..'
59
59
}
60
+ ] ,
61
+ patterns : [
62
+ {
63
+ group : [ '@audius/sdk/dist*' ] ,
64
+ message :
65
+ 'Do not import from the SDK dist folder. If needed, update SDK to export the item you wish to use.'
66
+ }
60
67
]
61
68
}
62
69
]
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ module.exports = {
42
42
{
43
43
group : [ 'react-spring*' ] ,
44
44
message : 'Please use @react-spring/web instead'
45
+ } ,
46
+ {
47
+ group : [ '@audius/sdk/dist*' ] ,
48
+ message :
49
+ 'Do not import from the SDK dist folder. If needed, update SDK to export the item you wish to use.'
45
50
}
46
51
]
47
52
}
You can’t perform that action at this time.
0 commit comments