ts-repo-utils
    Preparing search index...

    Function formatUncommittedFiles

    • Format only files that have been changed (git status)

      Parameters

      • Optionaloptions: Readonly<
            {
                cwd?: string;
                ignore?: false
                | ((filePath: string) => boolean);
                ignoreUnknown?: boolean;
                modified?: boolean;
                silent?: boolean;
                staged?: boolean;
                untracked?: boolean;
            },
        >

        Options for formatting

        • cwd

          If provided, only files within this directory will be formatted. Relative paths are resolved against process.cwd(). Defaults to undefined (no filtering; all changed files in the repository are formatted).

      Returns Promise<
          Result<
              undefined,
              readonly unknown[]
              | ExecException
              | Readonly<{ message: string }>,
          >,
      >