New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@apolitical/mrlint

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apolitical/mrlint

Node.js library to mantain GitLab MRs linted within a set of rules

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Apolitical MRLint

Node.js module to expose Apolitical's GitLab MR linter

Requirements

Requires the following to run:

  • node.js 16.13.0+
  • yarn

Installation

Install with yarn:

yarn add apolitical-mrlint

Usage

The @apolitical/mrlint module is meant to be used from pipelines (CI/CD), doesn't matter if the repo is a UI or API.

After installing the package, just run:

yarn run danger ci -d $CI_PROJECT_DIR/node_modules/@apolitical/mrlint/index.js

NB: $CI_PROJECT_DIR is needed in order to fetch the exported index.js file correctly, as we're running in a VM from GitLab

And that is it, the MR suggestions should be appearing in GitLab!

Keywords

Javscript

FAQs

Package last updated on 01 Feb 2023

Related posts