[openstreetmap/openstreetmap-website] Bump @stylistic/eslint-plugin-js from 3.1.0 to 4.0.0 (PR #5704)

Holger Jeromin notifications at github.com
Wed Feb 19 08:23:13 UTC 2025


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

fails with
> Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/openstreetmap-website/openstreetmap-website/node_modules/@stylistic/eslint-plugin-js/dist/index.js from /home/runner/work/openstreetmap-website/openstreetmap-website/config/eslint.js not supported.
Instead change the require of index.js in /home/runner/work/openstreetmap-website/openstreetmap-website/config/eslint.js to a dynamic import() which is available in all CommonJS modules.

ref https://github.com/eslint-stylistic/eslint-stylistic/releases/tag/v4.0.0

We have eslint 9+ and flat config, so I am not sure what the problem here is... 
Perhaps even a bug in `@stylistic/eslint-plugin-js`

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

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


More information about the rails-dev mailing list