Skip to content

Commit e6ed666

Browse files
committed
refactor(ts-lib-tools): 修复代码风格问题
1 parent a84c20d commit e6ed666

File tree

1 file changed

+6
-10
lines changed
  • packages/ts-lib-tools/src/config

1 file changed

+6
-10
lines changed

packages/ts-lib-tools/src/config/paths.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export function getAppPackageInfo(): Record<string, any> {
3434
/**
3535
* 项目版本号
3636
*/
37-
export const getAppVersion = (): string => {
38-
return getAppPackageInfo().version;
39-
};
37+
export const getAppVersion = (): string => getAppPackageInfo().version;
4038

4139
/**
4240
* 解析模块的真实文件路径
@@ -111,13 +109,11 @@ export const getJestDOMModulePath = (): string | undefined => {
111109
/**
112110
* 库对应的全局名称
113111
*/
114-
export const globals = (): string => {
115-
return {
116-
react: 'React',
117-
'react-native': 'ReactNative',
118-
...getAppPackageInfo().globals,
119-
};
120-
};
112+
export const globals = (): string => ({
113+
react: 'React',
114+
'react-native': 'ReactNative',
115+
...getAppPackageInfo().globals,
116+
});
121117

122118
/**
123119
* 获取 mono 项目的根目录

0 commit comments

Comments
 (0)