New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-formatter-gitlab

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-formatter-gitlab

Show Stylelint results directly in the GitLab code quality results

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.2K
decreased by-1.78%
Maintainers
1
Weekly downloads
 
Created
Source

Stylelint Formatter for GitLab

pipeline status coverage report

Show ESLint results directly in the GitLab code quality results

Requirements

This requires at least GitLab Starter 11.5 and at least Stylelint 9.

Installation

Install eslint and eslint-formatter-gitlab using your package manager.

npm install --save-dev stylelint stylelint-formatter-gitlab
yarn add --dev stylelint stylelint-formatter-gitlab

Define a GitLab job to run stylelint.

.gitlab-ci.yml:

stylelint:
  image: node:10-alpine
  script:
    - npm ci
    - npx stylelint --custom-formatter=node_modules/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.

Configuration Options

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

Environment VariableDescription
STYLELINT_CODE_QUALITY_REPORTThe 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_FORMATTERThe Stylelint formatter to use for the console output. This defaults to string, the default Stylelint formatter.

Keywords

FAQs

Package last updated on 25 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc