File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ module.exports = {
4747 '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.' ,
4848 selector : 'WithStatement' ,
4949 } ,
50+ {
51+ message : '`export *` is forbidden.' ,
52+ selector : 'ExportAllDeclaration' ,
53+ } ,
5054 ] ,
5155 // This is to have a more breathable codebase
5256 'padding-line-between-statements' : [
Original file line number Diff line number Diff line change 11import I18nContextProvider from './usei18n'
22
3- export * from './usei18n'
4- export * from './types'
3+ export { useI18n , useTranslation } from './usei18n'
4+ export type { TranslateFn , ScopedTranslateFn , ReactParamsObject } from './types'
55
66export default I18nContextProvider
Original file line number Diff line number Diff line change 11import SegmentProvider from './useSegment'
22
3- export * from './useSegment'
3+ export { useSegment } from './useSegment'
4+ export type {
5+ Analytics ,
6+ OnEventError ,
7+ SegmentProviderProps ,
8+ } from './useSegment'
49
510export default SegmentProvider
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export type SegmentProviderProps<T> = {
4949 children : ReactNode
5050}
5151
52- export { Analytics }
52+ export type { Analytics }
5353
5454function SegmentProvider < T extends Events > ( {
5555 children,
You can’t perform that action at this time.
0 commit comments