Skip to content

interrobrian/stylelint-teamcity-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-teamcity-reporter

Outputs stylelint results compatible with TeamCity.

Usage

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

Configuration

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:

1. From your package.json

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"
  }
}

2. ENV variables

export STYLELINT_TEAMCITY_REPORTER="inspections"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published