@apolitical/mrlint

1.0.1 • Public • Published

Apolitical MRLint

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

Requirements

Requires the following to run:

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!

Package Sidebar

Install

npm i @apolitical/mrlint

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

9.37 kB

Total Files

5

Last publish

Collaborators

  • npm-apolitical-styleguide