-
Notifications
You must be signed in to change notification settings - Fork 368
chore: Upgrade linter and adjust eslint rules #1033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@mstriemer I made some progress but I'm a bit stumped on the new lint errors. It looks like our |
|
Hmm, a lot of these seem like eslint isn't understanding the es6 code properly. Not necessarily related to flow. |
|
The errors I looked at were all for Flow types (not valid javascript). The define-flow-type rule is supposed to suppress those. It says: "Used to suppress no-undef reporting of type identifiers." |
|
Looks like the errors are still somehow caused by addons-linter. Leaving it at 0.22.3 passes the build. |
|
Looks like the errors start with mozilla/addons-linter@0.20.3...0.20.4 which has dispensary updating eslint to version 4, which is in its dependencies likely by accident. I filed mozilla/dispensary#398 to move that to devDependencies. Should figure out how to test if that fixes it locally, but either way that change should likely go out. |
|
Thanks. The eslint 4 dep sounds suspiciously related but still weird. |
|
Updating to addons-linter@0.22.8 fixes this for me locally. I think we should still get the Firefox 56 schemas in an addons-linter release before we cut a new web-ext, though. |
|
@mstriemer thanks for your help on this! Give me a ping when the schemas are released and we'll cut a release. |
Closes #992
This upgrades the linter but also adjusts some eslint rules. For some mysterious reason, the linter triggered eslint errors.