pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/airbnb/javascript/pull/3100

dia="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-eab9c5888b163e42.css" /> fix whitespace module execSync under Windows with no shebang by zaycker · Pull Request #3100 · airbnb/javascript · GitHub
Skip to content

fix whitespace module execSync under Windows with no shebang#3100

Draft
zaycker wants to merge 2 commits into
airbnb:masterfrom
zaycker:master
Draft

fix whitespace module execSync under Windows with no shebang#3100
zaycker wants to merge 2 commits into
airbnb:masterfrom
zaycker:master

Conversation

@zaycker

@zaycker zaycker commented Mar 4, 2025

Copy link
Copy Markdown

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 zaycker changed the title fix whitespace module execSync under Windows with no shebang #2700 fix whitespace module execSync under Windows with no shebang Mar 4, 2025
@ljharb

ljharb commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator

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 ljharb marked this pull request as draft March 4, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected end of JSON input

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy