File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,11 @@ export async function lint(options?: Partial<DefaultOptions>) {
57
57
58
58
if ( mergedOptions . lintAll ) {
59
59
if ( globalState . selectedSourceType === 'root' ) {
60
- lintFiles = glob . sync ( `${ globalState . projectRootPath } /{${ srcPath . dir } ,${ packagesPath . dir } }/**/*.{ts,tsx}` ) ;
61
60
lintFilesPattern = `${ globalState . projectRootPath } /{${ srcPath . dir } ,${ packagesPath . dir } }/**/*.{ts,tsx}` ;
61
+ lintFiles = glob . sync ( lintFilesPattern ) ;
62
62
} else {
63
- lintFiles = glob . sync (
64
- `${ globalState . projectRootPath } /${ packagesPath . dir } /${ globalState . selectedSourceType } /**/*.{ts,tsx}` ,
65
- ) ;
66
63
lintFilesPattern = `${ globalState . projectRootPath } /${ packagesPath . dir } /${ globalState . selectedSourceType } /**/*.{ts,tsx}` ;
64
+ lintFiles = glob . sync ( lintFilesPattern ) ;
67
65
}
68
66
} else {
69
67
lintFiles = _ . compact (
You can’t perform that action at this time.
0 commit comments