Created by: vinay-thallam
fixes #162 (closed)
Below items are taken care in this PR.
- Using prettier to take care of code formatting rules and continued to take code quality rules from google's style guideline
- Fixed the existing eslint violations in code
- Added "dbaeumer.vscode-eslint" and "esbenp.prettier-vscode" extensions in vs code recommendations
- Added setting to do format on save of JS and JSON files using prettier
- Added pre-commit hook to do lint fix and format fix. This prevents commit if there exists lint errors in code unless you use --no-verification flag with git commit
Note : Added "validate" script in package.json which can be included in CI pipeline. I have not added it in github workflow file, since I am not sure when to trigger it.