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
Linter fails to parse public class fields #166
Comments
addons-linter likely needs to be on a newer version, I can do that on Monday. |
Try submitting your add-on again please. |
After resubmitting I get the following errors instead:
These errors are solved after removing the public class fields in the two files. Submission is no longer blocked. After submitting the addon I'll post the addon name here, so further debugging can proceed. |
Okay, I now managed to submit the addon for review. |
OK, so the underlying issue here is that eslint does not support public class fields yet, and therefore addons-linter does not, see: mozilla/addons-linter#3836 We cannot resolve this until those upstream issues are fixed, sorry. |
The AMO bug mentioned a dependency on a ESLint bug, which seems to be fixed now: Does that mean this issue can move forward? |
Any update on this? Like @jobisoft mentioned this works since ESLint 8,.0.0 (https://eslint.org/blog/2021/10/eslint-v8.0.0-released). This is currently preventing me to upload a new release, since I started to use static fields in classes. |
Thanks for the reminder, I've updated the linter and deployed the change, so this should work now. Let me know if it doesn't. |
Thanks a lot for the quick fix. Can confirm that uploading to ATN worked now. |
Describe the problem and steps to reproduce it:
We developed an Thunderbird addon using modern ES6 modules, as described here https://developer.thunderbird.net/add-ons/mailextensions#webextension-scripts
Unfortunately after months of developing the addon, we were not able to upload it on the AMO.
Linter reports syntax errors in two of our files. It seems, it does not understand all language features of ES6.
The addon works quite fine in current version of Thunderbird (version 78.12.0, 64-bit). So I can't understand, why the validation process is blocking the submission.
What happened?
Uploading the addon is not possible, because the linter cannot parse our addon code (a glimpse of the affected file is given below). Instead the following syntax errors are thrown:
I think it is noteworthy, that only 2 of our files are reported. We have more files with ES6 features in our addon, but those are not mentioned in the validation report.
What did you expect to happen?
Linter should understand
export
andimport
statements and class members defined in class scope.Anything else we should know?
DatabaseManager.js, Line 1 - 10
ConversationRepository.js, Line 1-20
The text was updated successfully, but these errors were encountered: