Skip to content

Quickstart setting up linting

Team Platforce use linting in our setup and this is a quick guide to start using the same setup.

Be aware that the reference examples might be a bit outdated. We strongly encourage you to aquire some basic knowledge about the tools you are using instead of blindly copy pasting.

Checkout the linting reference and our example setup here: https://github.com/navikt/crm-workflows-dev

Prerequisites

Quick start

  1. Checkout the reference linting reference
  2. Go to our example setup and copy the setup of our package.json file
  3. Run npm install
  4. Copy the pre-commit file in the .husky folder to your setup
  5. Start committing