Plant-Tracer / webapp

Client and Server for web-based JavaScript app
GNU Affero General Public License v3.0
0 stars 2 forks source link

eslint "'XXX' is not defined" errors where XXX is defined elsewhere #548

Open sbarber2 opened 1 month ago

sbarber2 commented 1 month ago

For example, API_BASE is not defined in static/planttracer.js so eslint complains, but API_BASE is defined in templates/base.html so is in scope at runtime.

What to do with this from a lint perspective?

simsong commented 1 month ago

Perhaps API_BASE is the wrong approach?

On Oct 10, 2024, at 11:39 AM, Steve Barber @.***> wrote:

For example, API_BASE is not defined in static/planttracer.js so eslint complains, but API_BASE is defined in templates/base.html so is in scope at runtime.

What to do with this from a lint perspective?

— Reply to this email directly, view it on GitHub https://github.com/Plant-Tracer/webapp/issues/548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMFHLELFMNUR62NKZKGRRTZ22NRVAVCNFSM6AAAAABPXCPDE2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3TSMRRGU2TCNY. You are receiving this because you are subscribed to this thread.