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¶
- Checkout the reference linting reference
- Go to our example setup and copy the setup of our
package.jsonfile - Run
npm install - Copy the
pre-commitfile in the .husky folder to your setup - Start committing