File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ async function runGlobs(options: Options, pluginsOptions: PluginsOptions): Promi
103
103
//TODO: Maybe do work in chunks here, as keeping too many formatted files in memory can be a problem
104
104
const filesResults = await Promise . allSettled (
105
105
filesPathsTargets . map ( async ( filePath ) => {
106
- const isIgnored = ( ) => ! ignoreFiles . length && ( ignoreManual ? ignoreManual ( filePath ) : getIgnoreResolved ( filePath , ignoreNames ) ) ;
106
+ const isIgnored = ( ) => ( ignoreManual ? ignoreManual ( filePath ) : getIgnoreResolved ( filePath , ignoreNames ) ) ;
107
107
const isCacheable = ( ) => cache ?. has ( filePath , isIgnored ) ;
108
- const ignored = cache ? ! ( await isCacheable ( ) ) : await isIgnored ( ) ;
108
+ const ignored = ! ignoreFiles . length && ( cache ? ! ( await isCacheable ( ) ) : await isIgnored ( ) ) ;
109
109
if ( ignored ) return ;
110
110
const getFormatOptions = async ( ) : Promise < FormatOptions > => {
111
111
const editorConfig = options . editorConfig ? getEditorConfigFormatOptions ( await getEditorConfigResolved ( filePath , editorConfigNames ) ) : { } ;
You can’t perform that action at this time.
0 commit comments