-
Notifications
You must be signed in to change notification settings - Fork 0
Running the Linter
- In the root directory for the repository open a terminal
- 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 -
If there are no lint errors there a message will read
Linter completed with no linting errors
- In the root directory for the repository open a terminal
- 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)
Copyright © Team Project Hype-r Phlame. 2019. All Rights Reserved.