An ESLint formatter that outputs errors and warnings as Azure DevOps (Azure Pipelines, TFS/VSTS) logging commands, enabling direct integration with build and release pipelines. Current stable version is 1.2.1 (Dec 2024). Released under MIT license by Engage Software. Features: supports both error and warning logging, optional task completion markers (partial success for warnings via ESLINT_AZDO_LOG_TASK_COMPLETE), max-warnings support since v1.1.0. Requires Node.js >=14. ESM-only since v1.0.0. Key differentiator: native integration with Azure DevOps pipeline log commands, no dependencies beyond ESLint.
npm install eslint-formatter-azure-devopsVerified import paths — ran on the pinned version, not inferred.
Run ESLint with Azure DevOps logging commands output for pipeline integration.
Upgrade Node.js to version 14 or higher.
Upgrade to v1.1.0 or later to use --max-warnings.
Set the environment variable before running ESLint: ESLINT_AZDO_LOG_TASK_COMPLETE=true
Ensure eslint-formatter-azure-devops is in the local node_modules (npm install --save-dev eslint-formatter-azure-devops)
Install the package: npm install --save-dev eslint-formatter-azure-devops
Use ESLint's loadFormatter() method or CLI --format flag.
Do not import the formatter directly; let ESLint load it internally.
Set ESLINT_AZDO_LOG_TASK_COMPLETE to any non-empty value (e.g., 'true') before invoking ESLint.