aws-lambda
aws-lambda copied to clipboard
Fix: Resolve all eslint errors
This PR aims to resolve all linting issues.
As I read the code I saw that console.log is used widely to output messages in the terminal. The wast majority of errors derived from the no-console rule. If the intent is to leave those in the code the fastest way out is to remove the no-console rule as disabling the line with // eslint-disable-next-line no-console gets tedious fast.
I've added a .env.example to let the dev know that he needs those environment variables to run tests (which currently fails)
There was a typo in a throw statement in the tests/utils.js file and I've also added a throw statement like it's done with the AWS credentials.
The getPolicy function was not exported in the module, perhaps it's done intentionally? In that case, the function is not used anywhere so it can be safely removed.