Getting Started
Install the plugin:
npm install --save-dev eslint-plugin-file-progress-2
Quick start with Flat Configâ
import progress from "eslint-plugin-file-progress-2";
export default [progress.configs.recommended];
Configure a rule directlyâ
import progress from "eslint-plugin-file-progress-2";
export default [
{
plugins: {
"file-progress": progress,
},
rules: {
"file-progress/activate": [
"warn",
{
outputStream: "stderr",
throttleMs: 100,
ttyOnly: true,
},
],
},
},
];
For a full option-by-option reference, default values, and deprecated fallback
notes, read activate.
Preset choicesâ
- đĄ
recommended: full per-file progress - đ
recommended-ci: hides progress whenCI === "true" - đ”
recommended-detailed: enables the detailed summary - đŁ
recommended-compact: uses the compact live mode - âȘ
recommended-summary-only: prints only the final summary - đą
recommended-tty: enablesttyOnly: true - đ€
recommended-ci-detailed: keeps CI output quiet but still prints the detailed summary there
Rule choicesâ
If you are not using one of the built-in presets, configure the single public rule with the mode you want:
file-progress/activatewithmode: "file": full per-file progress updatesfile-progress/activatewithmode: "compact": generic live progress without file namesfile-progress/activatewithmode: "summary-only": final summary only
Migration from older configsâ
The old file-progress/compact and file-progress/summary-only rule IDs were
removed.
Use file-progress/activate with mode instead:
rules: {
"file-progress/activate": ["warn", { mode: "compact" }],
}
rules: {
"file-progress/activate": ["warn", { mode: "summary-only" }],
}
The recommended-compact and recommended-summary-only presets still exist and
now map to those mode values automatically.
Deprecated settings fallbackâ
settings.progress still works, but it is deprecated.
Prefer rule options whenever you change runtime behavior, especially for:
ttyOnlythrottleMsminFilesBeforeShowshowSummaryWhenHiddenpathFormatoutputStream
CLI-only usageâ
If you do not want editor integrations to see these runtime rules, keep the plugin out of your shared config and enable it only from the CLI:
npx eslint . --plugin file-progress --rule 'file-progress/activate: warn'
Next stepâ
Read the preset guide or jump to activate.