enable eslint for browser code#80
Conversation
|
This will break in older browsers. Might need to hold off on merging this until |
Set eslint browser environment instead of listing all globals manually, and fix issues where needed.
|
In that case I will make eslint check browser code against an earlier ECMA version. What is considered available in browsers these days? |
2c298be to
0fdca44
Compare
|
I updated the commit to disable the rule The code in aws-node-auth0-custom-authorizers-api/frontend/app.js was already using But since these are examples used by serverless developers, supporting old browsers might not be necessary at all... |
|
Sorry for the bike shedding, though can I put a vote in instead for the simpler https://www.npmjs.com/package/standard ? |
|
We need to make the linting nicer... That is for sure. I do like standard but it's different than other serverless repos. I'm going to take a pass at the eslintrc here and relax some of the pedantic rules that require all these damn comments. Has anyone used https://github.com/jlongster/prettier or https://github.com/kentcdodds/prettier-eslint ? |
|
Should we open a new issue for the discussion around a new coding style? What shall we do with this in the meantime? Close and abandon or merge until we come up with something better? |
|
@DavidWells haven't tried Prettier yet. Will give it a try this week and can report back then. The PR looks good to be merged now from my perspective. Any objections to merge it? |
Don't disable eslint globally, and fix issues where needed.