
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
stylelint-formatter-gitlab
Advanced tools
Show Stylelint results directly in the GitLab code quality results
Show ESLint results directly in the GitLab code quality results
This requires at least GitLab Starter 11.5 and at least Stylelint 9.
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.
ESLint 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. |
FAQs
Show Stylelint results directly in the GitLab code quality results
The npm package stylelint-formatter-gitlab receives a total of 4,053 weekly downloads. As such, stylelint-formatter-gitlab popularity was classified as popular.
We found that stylelint-formatter-gitlab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.