-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Static Module Doesn't Play Nice With ESLint #540
Labels
Comments
dcodeIO
added a commit
that referenced
this issue
Dec 11, 2016
… instead of always using global.root and added additionally necessary eslint comments, see #540
Refactored this a bit and added a few eslint comments to meet your needs. Try again! |
Now I get this error:
It's caused by the wrapper:
|
Also, when fix the wrapper by removing everything except commonjs, I then get a warning about
It can be fixed by removing that line or adding the |
dcodeIO
added a commit
that referenced
this issue
Dec 11, 2016
…tic-module targets to use common wrappers
Here you go:
|
Thanks! Everything works now! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When using protobufjs with my react project, I get eslint errors in the file generated using
pbjs -t static-module
. Here's a gist with my generated file and eslint errors. https://gist.github.com/caffinatedmonkey/918e7fddc80f7c0dc31be0f7fb59966cThe first few errors are caused by the wrapper. It would be nice to have some built-in ones for just commonjs or amd only which also play nice with eslinr under the
-t
flag.The ones about reader being undefined seem valid.
Awesome project by the way!
The text was updated successfully, but these errors were encountered: