Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix whitespace module execSync under Windows with no shebang#3100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
zaycker wants to merge2 commits intoairbnb:master
base:master
Choose a base branch
Loading
fromzaycker:master

Conversation

zaycker
Copy link

@zayckerzaycker commentedMar 4, 2025
edited
Loading

fixes#2700

In case the eslint version is 8,whitespace.js file tries to executewhitespace-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 withexecSync or any other fork tool it opens up a dialog for choosing a program to open the .js file.
It requires explicit definition ofnode interpreter at the place of execution.
windowsHide option prevents opening ofcmd window during execution and it is ignored under non-Windows systems.

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

@zayckerzaycker changed the titlefix whitespace module execSync under Windows with no shebang #2700fix whitespace module execSync under Windows with no shebangMar 4, 2025
@ljharb
Copy link
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.

zaycker reacted with thumbs up emoji

@ljharbljharb marked this pull request as draftMarch 4, 2025 07:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Unexpected end of JSON input
2 participants
@zaycker@ljharb

[8]ページ先頭

©2009-2025 Movatter.jp