Skip to main content

recommended-tty

Use this preset when the config is shared across interactive terminals and non-interactive environments, and progress should only appear on a TTY.

import progress from "eslint-plugin-file-progress-2";

export default [progress.configs["recommended-tty"]];

Demo​

Demo of the recommended-tty preset showing that non-interactive runs stay quiet.

Notice that the full command is visible immediately, but no plugin output appears because the capture is intentionally non-interactive.

This demo intentionally records a non-interactive capture. Because this preset sets ttyOnly: true, the plugin stays quiet when no TTY is available.

Recorded with Asciinema Recorder and Agg

Download the recorded cast

What it changes​

It enables file-progress/activate with:

{
ttyOnly: true,
}

This is usually the safest preset for shared local/editor/automation configurations.