Registry / devops / stylelint-formatter-azure-devops

stylelint-formatter-azure-devops

JSON →
library0.0.2jsnpmunverified

A custom formatter for stylelint that outputs results in Azure DevOps logging commands format, enabling file annotations and error reporting in pipeline build results. Currently at version 0.0.2 with no recent releases. Differentiates from other formatters by integrating directly with Azure DevOps annotation system.

npm install stylelint-formatter-azure-devops
INSTALL
IMPORT
SIG · STYLELINT-FORMATTE
S
stylelint-formatter-azure-devops
devopsjavascriptv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import formatter from 'stylelint-formatter-azure-devops';
const formatter = require('stylelint-formatter-azure-devops');
Package is ESM-only. Use require only if project supports ESM.
stylelint formatter path
stylelint --custom-formatter 'node_modules/stylelint-formatter-azure-devops'
Used with stylelint CLI via --custom-formatter flag.

Shows programmatic usage of stylelint with the Azure DevOps formatter, running lint on CSS files and outputting formatted results.

import stylelint from 'stylelint'; import azureFormatter from 'stylelint-formatter-azure-devops'; stylelint.lint({ files: 'src/**/*.css', formatter: azureFormatter, }).then(result => { console.log(result.output); }).catch(err => { console.error(err); });
Debug
Known issues
breakingPackage is ESM-only; requires Node.js >=12 or module configuration.
fix
Use import syntax or set type: 'module' in package.json. For CommonJS, use dynamic import().
affects: >=0.0.1
gotchaFormatter only outputs annotation commands; does not produce standard stylelint output format.
fix
Ensure CI pipeline interprets Azure DevOps logging commands. Combine with other formatters if text output is needed.
affects: >=0.0.1
deprecatedStylelint custom formatter API may change; check compatibility with stylelint >=14.
fix
Verify with stylelint version in use. Update package if needed.
affects: >=0.0.1
gotchaFormatter expects stylelint results object; does not work with standalone plugins or custom lint runners.
fix
Only use with stylelint.lint() or stylelint CLI.
affects: >=0.0.1
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() with ESM-only package.
fix
Use import statement or dynamic import().
Cannot find module 'stylelint-formatter-azure-devops'
Package not installed or not in node_modules path.
fix
Run npm install stylelint-formatter-azure-devops --save-dev
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies
stylelintrequiredpeer dependency required for formatter to work with stylelint
Agent activity
4 hits · last 30 days
node
4
Resources
stylelint-formatter-azure-devops — npm install stylelint-formatter-azure-devops · libregistry