stylelint-formatter-codeclimate
Version:
A CodeClimate compatible formatter for Stylelint
53 lines (35 loc) • 1.75 kB
Markdown
# stylelint-formatter-codeclimate
> A CodeClimate compatible formatter for [Stylelint](https://stylelint.io/)
[](https://gitlab.com/jdslv/stylelint-formatter-codeclimate)
[](https://www.npmjs.com/package/stylelint-formatter-codeclimate)
[](https://gitlab.com/jdslv/stylelint-formatter-codeclimate/-/pipelines)
[](https://codecov.io/gl/jdslv/stylelint-formatter-codeclimate/)
[](https://gitlab.com/jdslv/stylelint-formatter-codeclimate)
[](https://gitlab.com/jdslv/stylelint-formatter-codeclimate/-/blob/main/LICENSE)
## Install
Using [npm](https://www.npmjs.com/get-npm):
```bash
npm install --save-dev stylelint-formatter-codeclimate
```
Using [yarn](https://yarnpkg.com/):
```bash
yarn add --dev stylelint-formatter-codeclimate
```
Using [pnpm](https://pnpm.js.org):
```bash
pnpm install --dev stylelint-formatter-codeclimate
```
## Usage
### Stylelint CLI
```bash
npx stylelint "*.css" --custom-formatter=node_modules/stylelint-formatter-codeclimate
```
### GitLab CI
```yaml
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
```