javascript icon indicating copy to clipboard operation
javascript copied to clipboard

fix whitespace module execSync under Windows with no shebang

Open zaycker opened this issue 10 months ago • 1 comments

fixes #2700

In case the eslint version is 8, whitespace.js file tries to execute whitespace-async.js file. whitespace-async.js file starts with shebang header #!/usr/bin/env node which doesn't work under Windows. It cannot be executed right away without definition of interpreter. In case we try to execute it with execSync or any other fork tool it opens up a dialog for choosing a program to open the .js file. It requires explicit definition of node interpreter at the place of execution. windowsHide option prevents opening of cmd window during execution and it is ignored under non-Windows systems.

there is another PR which is outdated. made a fresh one

zaycker avatar Mar 04 '25 06:03 zaycker

This is a duplicate of #2706. Please don't file duplicate PRs - if one is outdated, you can comment on that PR with your branch and maintainers can pull it in.

ljharb avatar Mar 04 '25 07:03 ljharb