[openstreetmap/openstreetmap-website] Add linting for .js.erb files (Issue #5523)

Marwin Hochfelsner notifications at github.com
Sun Jan 19 19:46:26 UTC 2025


### Problem

The JS with embedded Ruby isn't held to the same standards as all the other JS code.

### Description

Please look into enabling linting files with embedded Ruby in ESLint.
The [eslint-plugin-erb](//github.com/Splines/eslint-plugin-erb) could help here.

### Screenshots

![osm.js.erb](https://github.com/user-attachments/assets/d032ec80-5f32-4e4a-83af-3027e6e66663)
![embed.js.erb](https://github.com/user-attachments/assets/a6e11800-77f7-415f-bc68-702798f59bdd)
![id.js.erb](https://github.com/user-attachments/assets/a09b71c5-15ec-4315-953d-fa19b9722a7d)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5523
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5523 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250119/71b71bd6/attachment.htm>


More information about the rails-dev mailing list