Registry / devops / stylelint-formatter-vsts

stylelint-formatter-vsts

JSON →
library1.0.1jsnpmunverified

A StyleLint formatter that outputs violations in Visual Studio Team Services (VSTS) / Azure DevOps build error format. Version 1.0.1 is the latest stable release; the formatter converts StyleLint results into the ##vso[task.logissue] format for integration with pipeline logs. It is a niche plugin for teams using StyleLint in VSTS/Azure DevOps CI pipelines, differentiating from standard formatters by enabling direct error reporting in build summaries.

npm install stylelint-formatter-vsts
INSTALL
IMPORT
SIG · STYLELINT-FORMATTE
S
stylelint-formatter-vsts
devopsjavascriptv1.0.1
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-vsts'
const formatter = require('stylelint-formatter-vsts')
ESM-only package, no CommonJS export
formatter
import { formatter } from 'stylelint-formatter-vsts'
const { formatter } = require('stylelint-formatter-vsts')
Named export available, but default export is the same function
default
import stylelintFormatterVsts from 'stylelint-formatter-vsts'
const stylelintFormatterVsts = require('stylelint-formatter-vsts')
Use default import in ESM context

Configure StyleLint to use the VSTS formatter via .stylelintrc.js

// .stylelintrc.js module.exports = { formatter: 'stylelint-formatter-vsts' };
Debug
Known issues
gotchaFormats output only for VSTS/Azure DevOps task logs
fix
Ensure CI environment is VSTS/Azure DevOps; otherwise output may be unrecognizable
affects: >=1.0
Errors
Common errors & fixes
Cannot find module 'stylelint-formatter-vsts'
Package not installed or missing from node_modules
fix
npm install stylelint-formatter-vsts --save-dev
Invalid formatter: stylelint-formatter-vsts
StyleLint version incompatible or formatter path incorrect
fix
Ensure StyleLint version >=8.0.0 and formatter name matches installed package
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
stylelintrequiredpeer dependency required to provide formatting context
Agent activity
2 hits · last 30 days
node
2
Resources
stylelint-formatter-vsts — npm install stylelint-formatter-vsts · libregistry