Skip to content

Static Module Doesn't Play Nice With ESLint #540

@0xcaff

Description

@0xcaff

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/918e7fddc80f7c0dc31be0f7fb59966c

The 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions