Open RodrigoDornelles opened 3 weeks ago
v8.56.0
compatibility with other runtimes such as bun and deno.
in file bin/eslint.js
bin/eslint.js
replace
const spawn = require("cross-spawn"); spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
to
const spawn = require("cross-spawn"); const npm = process.env.npm_execpath || "npm"; spawn.sync(npm, ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
I created a PR, but it was rejected because it needed an RFC as per the comment. https://github.com/eslint/eslint/pull/18178#issuecomment-2032740972
need create an RFC documenting it in the eslint/rfcs repository, after that maybe re-opening my contribution;
related: https://github.com/oven-sh/bun/issues/6728
Happy have an RFC submitted for this. :+1:
ESLint version
v8.56.0
What problem do you want to solve?
compatibility with other runtimes such as bun and deno.
What do you think is the correct solution?
in file
bin/eslint.js
replace
to
Participation
Additional comments
I created a PR, but it was rejected because it needed an RFC as per the comment. https://github.com/eslint/eslint/pull/18178#issuecomment-2032740972
need create an RFC documenting it in the eslint/rfcs repository, after that maybe re-opening my contribution;
related: https://github.com/oven-sh/bun/issues/6728