# Repository

# Install


# Lint

# Build and install dependencies

docker-compose build lint

# Use the linter

docker-compose run lint

ℹī¸ the code is mounted in read-only mode to keep the linter from making changes. Fix'em yourself!

# Connect with VScode (optional)

  1. Install the node_modules in the docker/lint folder, otherwise VScode cannot access them (they are built inside the Docker container).
cd docker/lint && yarn
  1. Install Prettier Code Formatter extension (opens new window)
  2. Il should detect the config from .vscode/settings.json and use the configured prettier module from docker/lint/node_modules. Check the Ouput panel in VScode (Menu > View > Output)

⚠ī¸ Do not install eslint or prettier locally or globally

# Use

# lint api and dashboard
docker-compose run lint

# lint api or dashboard only
docker-compose run lint yarn api
docker-compose run lint yarn dashboard

You can Ctrl-click on the file paths for the errors and it should jump to the right position in the file.