File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments