[openstreetmap/openstreetmap-website] Add eslint-plugin-erb to provide linting of our .js.erb files (PR #5549)
Andy Allan
notifications at github.com
Fri Jan 24 16:02:45 UTC 2025
> Is `--fix` of any help here, have you tried this out already?
We run eslint via `bundle exec rails eslint`, and that doesn't support the `--fix` option. Our configuration doesn't support running eslint directly, since we [use ruby code in the configuration](https://github.com/openstreetmap/openstreetmap-website/blob/master/config/initializers/eslint.rb).
I'd like to get it running directly at some point, to improve integration between eslint and IDEs, which are more likely to support eslint directly than via rails tasks. Maybe there's also a way to get the `--fix` working via rails.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5549#issuecomment-2612872656
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5549/c2612872656 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250124/c5da84ae/attachment.htm>
More information about the rails-dev
mailing list