Skip to content

Commit a52444e

Browse files
author
chengyu.chengyulia
committed
fix: format
1 parent 3331d3d commit a52444e

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

src/utils/lint.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ export async function lint(options?: Partial<DefaultOptions>) {
6666
lintFilesPattern = `"${lintFilesPattern}"`;
6767
}
6868
} else {
69-
lintFiles = _.compact(
70-
execSync('git diff --cached --name-only --diff-filter=ACM')
71-
.toString()
72-
.split('\n'),
73-
)
69+
lintFiles = _.compact(execSync('git diff --cached --name-only --diff-filter=ACM').toString().split('\n'))
7470
.filter(file => {
7571
return file.match(/^(src|packages).+(ts|tsx)$/);
7672
})

src/utils/md5.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import * as crypto from 'crypto';
22

33
export function md5(str: string) {
4-
return crypto
5-
.createHash('md5')
6-
.update(str, 'utf8')
7-
.digest('hex');
4+
return crypto.createHash('md5').update(str, 'utf8').digest('hex');
85
}

src/utils/ts-plus-babel.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ const mvResources = (
137137
);
138138

139139
return new Promise((resolve, reject) => {
140-
getGulpByWatch(watch, targetPath)
141-
.on('error', reject)
142-
.pipe(gulp.dest(outdir))
143-
.on('end', resolve);
140+
getGulpByWatch(watch, targetPath).on('error', reject).pipe(gulp.dest(outdir)).on('end', resolve);
144141
});
145142
};
146143

0 commit comments

Comments
 (0)