Set up job to run linter in GitLab CI
Set up a job in GitLab CI that runs the linter. The job should be configured to run the linter when code is committed to the master branch of the repository or an MR is submitted.
- job is based on node:8 docker image
- job is split into 2 stages, setup and verify
- verify stage should use cache of node_modules from setup stage
verify stage should run the
- add badge to README
- enable setting on repository to only allow merge requests to be merged if pipeline succeeds
Open question: Should we add a dry-run format that fails if one of the files is formatted? This would allow us to "lint" the code formatting rules as well.