Outputs stylelint results compatible with TeamCity.
Install from npm:
npm install --save-dev stylelint-teamcity-reporter
or Yarn:
yarn add -D stylelint-teamcity-reporter
Then, set stylelint's custom formatter to the package. To do this from CLI, use:
stylelint \"**/*.css\" --custom-formatter=node_modules/stylelint-teamcity-reporter
Without any configuration, stylelint results will be reported as tests on a TeamCity build ("reporter": "errors"
). You can also configure it to produce code inspection-style output ("reporter": "inspections"
), which is displayed on the "Code Inspections" tab in TeamCity.
Settings are looked for in the following priority:
If you have a package.json file in the current directory, you can add an extra "stylelint-teamcity-reporter" property to it:
{
"stylelint-teamcity-reporter": {
"reporter": "inspections"
}
}
export STYLELINT_TEAMCITY_REPORTER="inspections"