# Build and install dependencies
docker-compose build lint
# Use the linter
docker-compose run lint
ℹ️ the code is mounted in
read-onlymode to keep the linter from making changes. Fix'em yourself!
# Connect with VScode (optional)
- Install the
docker/lintfolder, otherwise VScode cannot access them (they are built inside the Docker container).
cd docker/lint && yarn
- Install Prettier Code Formatter extension (opens new window)
- Il should detect the config from
.vscode/settings.jsonand use the configured
docker/lint/node_modules. Check the Ouput panel in VScode (Menu > View > Output)
⚠️ Do not install
prettierlocally or globally
# 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.