[openstreetmap/openstreetmap-website] Migrate eslint config to esmodules (PR #5707)

Holger Jeromin notifications at github.com
Wed Feb 19 11:59:01 UTC 2025


HolgerJeromin left a comment (openstreetmap/openstreetmap-website#5707)

> Is this actually working?

yes:
![image](https://github.com/user-attachments/assets/0deb75bf-1af7-456c-9761-b8a424357513)

> If you go with https://eslint.style/guide/migration#approach-1-migrate-to-single-plugin and import @stylistic/eslint-plugin then you can drop the /js/ from the rule names?

You did not wanted to pull in `typescript` dependency, so we added the js-only package.

I register the js rules without `js` suffic (`plugins: {"@stylistic": stylisticJs }`) thats why I do not need it in the rule name.
But I am not sure if this is smart or stupid. I only understood this logic after your comment.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5707#issuecomment-2668440414
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5707/c2668440414 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250219/b0f2c735/attachment.htm>


More information about the rails-dev mailing list