Formats Stylelint (up to v16+) output for TeamCity CI, reporting lint issues as Inspections or Tests via service messages, with optional build statistics. Version 2.2.1 supports Stylelint's --custom-formatter CLI option (no longer requires --formatter). Differentiators: native TeamCity Inspections vs Tests mode, zero-config setup, counters for error/warning statistics, and compatibility with both CJS and ESM. Maintained as of 2025.
npm install stylelint-teamcity-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up the TeamCity formatter with optional tests output mode and statistics.
Use --custom-formatter stylelint-teamcity-formatter instead of --formatter.
Use package name directly: --custom-formatter stylelint-teamcity-formatter
Use exact spelling: STYLELINT_TEAMCITY_FORMATTER_OUTPUT (no 'A' after M).
Correct key: "stylelint-teamcity-formatter": { ... }Ensure stylelint rules use severity 'warning' or 'error' for counting.
Run: npm install stylelint-teamcity-formatter --save-dev
For Stylelint 15 and older, use --formatter path: --formatter node_modules/stylelint-teamcity-formatter
Ensure --custom-formatter points to the package entry, not a different file.