Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.13 KB

CONTRIBUTING.md

File metadata and controls

76 lines (50 loc) · 1.13 KB

Contributing to lantern-js

Prerequisites

  • Node.js (Version 14 or higher)
  • npm (Version 6 or higher)
  • Postgres database with Lantern extensions installed

Installation

  1. Fork this repository to your own GitHub account and then clone it to your local device.

    git clone https://github.com/your-username/lantern-js.git
  2. Navigate to the cloned project directory and install the dependencies

    cd lantern-js
    npm i
  3. Copy the example environment file and configure it

    cp .env.example .env

Code Style Guide

To check for linting errors:

npm run lint

To fix linting errors:

npm run lint:fix

To format the code using Prettier:

npm run prettier:format

To check if the code is formatted correctly:

npm run prettier:check

To fix linting errors and format the code:

npm run format

Testing

Ensure all tests pass before submitting a pull request. To run the tests:

npm test

To run the tests with coverage:

npm run coverage

Place your test files in the test/ directory.