Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Running the Linter

Samuel Zheng edited this page Apr 3, 2019 · 1 revision

For Normal Developers

  1. In the root directory for the repository open a terminal
  2. Run the command npm run lint

This will run the linter on the repositories TS files checking for any major violation of our tslint.json config (errors only)

  • If there is a critical failure (return code 1) it means that the linter is not running properly, please contact @SamuelZheng11 for help

  • If there is a linting issue (return code 2) then it means there are linting errors present, fix accordingly by scrolling to a lint error and pressing ctrl + click on the file that is specified Help

  • If there are no lint errors there a message will read Linter completed with no linting errors

For Future and Advanced Developers

  1. In the root directory for the repository open a terminal
  2. Run the command npm run lintAllSeverities

This will run the linter on the repositories TS files checking for any major or minor violation of our tslint.json config (includes errors, warnings, notes, etc)

  • The exit code is the same as running the linter normally
  • Minor config violations will be logged in the console. However, The linter will terminal gracefully (without saying it ran into any issues)