Skip to content

Commit 1ecaddc

Browse files
author
月满
committed
fix: remove duplicate string literals
1 parent a99292f commit 1ecaddc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/lint.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ export async function lint(options?: Partial<DefaultOptions>) {
5757

5858
if (mergedOptions.lintAll) {
5959
if (globalState.selectedSourceType === 'root') {
60-
lintFiles = glob.sync(`${globalState.projectRootPath}/{${srcPath.dir},${packagesPath.dir}}/**/*.{ts,tsx}`);
6160
lintFilesPattern = `${globalState.projectRootPath}/{${srcPath.dir},${packagesPath.dir}}/**/*.{ts,tsx}`;
61+
lintFiles = glob.sync(lintFilesPattern);
6262
} else {
63-
lintFiles = glob.sync(
64-
`${globalState.projectRootPath}/${packagesPath.dir}/${globalState.selectedSourceType}/**/*.{ts,tsx}`,
65-
);
6663
lintFilesPattern = `${globalState.projectRootPath}/${packagesPath.dir}/${globalState.selectedSourceType}/**/*.{ts,tsx}`;
64+
lintFiles = glob.sync(lintFilesPattern);
6765
}
6866
} else {
6967
lintFiles = _.compact(

0 commit comments

Comments
 (0)