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

2025-01-25 Thread Holger Jeromin via rails-dev
> Maybe create a new issue for this topic. > https://github.com/prettier/plugin-ruby could be starting point. I am not sure if this only formats ruby code. I am an JS/TS expert so I focus on (native and embedded) js code. -- Reply to this email directly or view it on GitHub: https://github.com

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

2025-01-25 Thread Splines via rails-dev
> Most stylistic rules are now removed from eslint because most use a formatter > like prettier.io @HolgerJeromin Formatting rules have indeed been [deprecated](https://github.com/eslint/eslint/issues/17522) in the _core_ of ESLint. But mainly because of ongoing maintenance cost. Luckily, antfu

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

2025-01-25 Thread mmd via rails-dev
Maybe create a new issue for this topic. https://github.com/prettier/plugin-ruby could be starting point. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-2614086393 You are receiving this because you are subscr

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

2025-01-25 Thread Marwin Hochfelsner via rails-dev
That would indeed be an interesting issue to be discussed. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-2614081848 You are receiving this because you are subscribed to this thread. Message ID:

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

2025-01-25 Thread Holger Jeromin via rails-dev
We should discuss if we want to keep the current eslint config. Most stylistic rules are now removed from eslint because most use a formatter like prettier.io -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-261

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

2025-01-24 Thread Andy Allan via rails-dev
> Is this the shortest time the _awaiting upstream_ tag was necessary? I think so! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-2612667455 You are receiving this because you are subscribed to this thread. M

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

2025-01-24 Thread Splines via rails-dev
If you introduce linting here you might also be interested in: - How we use ESLint on GitHub Actions via [this file](https://github.com/MaMpf-HD/mampf/blob/23aae01471c4361b85e86df06e349cd8acfb735c/.github/workflows/linter.yml#L39-L75) to lint only the changes inside changed `.js` and `.js.erb` f

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

2025-01-23 Thread Marwin Hochfelsner via rails-dev
Is this the shortest time the _awaiting upstream_ tag was necessary? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-2611228271 You are receiving this because you are subscribed to this thread. Message ID: ___

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

2025-01-22 Thread Andy Allan via rails-dev
Thanks for the suggestion @hlfan. I've looked into this today, but I've run into a problem with the plugin that you found - we're writing our `.js.erb` files in a way that it isn't happy with. I've logged an issue for now upstream https://github.com/Splines/eslint-plugin-erb/issues/15 You can

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

2025-01-19 Thread Marwin Hochfelsner via rails-dev
### 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]