A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/@studiometa/stylelint-formatter-gitlab below:

youtube - npm search

@studiometa/stylelint-formatter-gitlab1.0.2 • Public • Published 3 months ago

@studiometa/stylelint-formatter-gitlab

Format StyleLint errors for Gitlab Code Quality reports.

Install the package with NPM:

npm install -D stylelint@16 @studiometa/stylelint-formatter-gitlab

Define a GitLab job to run stylelint.

.gitlab-ci.yml:

stylelint:
  image: node
  script:
    - npm ci
    - npx stylelint --custom-formatter=@studiometa/stylelint-formatter-gitlab .
  artifacts:
    reports:
      codequality: gl-codequality.json

The formatter will automatically detect a GitLab CI environment. It will detect where to output the code quality report based on the GitLab configuration file.

StyleLint formatters don’t take any configuration options. In order to still allow some way of configuration, options are passed using environment variables.

Environment Variable Description STYLELINT_CODE_QUALITY_REPORT The location to store the code quality report. By default it will detect the location of the codequality artifact defined in the GitLab CI configuration file. STYLELINT_FORMATTER The Stylelint formatter to use for the console output. This defaults to string, the default Stylelint formatter.

This project is based on the stylelint-formatter-gitlab package which seems unmaintained and does not support StyleLint v16.

Share feedback
Package Sidebar Install

npm i @studiometa/stylelint-formatter-gitlab

Downloads Weekly Downloads Last publish

3 months ago

Collaborators

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4