Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.71 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.71 KB

stylelint-formatter-codeclimate

A CodeClimate compatible formatter for Stylelint

GitLab Latest stable version Build status Coverage status Minimal NodeJS version License

Install

Using npm:

npm install --save-dev stylelint-formatter-codeclimate

Using yarn:

yarn add --dev stylelint-formatter-codeclimate

Using pnpm:

pnpm install --dev stylelint-formatter-codeclimate

Usage

Stylelint CLI

npx stylelint "*.css" --custom-formatter=node_modules/stylelint-formatter-codeclimate

GitLab CI

lint:
  script:
    - npx stylelint "*.css" --custom-formatter=node_modules/stylelint-formatter-codeclimate --output-file=gl-code-quality-report.json

  artifacts:
    reports:
      codeclimate: gl-code-quality-report.json