René's URL Explorer Experiment


Title: No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path) · Issue #3238 · airbnb/javascript · GitHub

Open Graph Title: No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path) · Issue #3238 · airbnb/javascript

X Title: No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path) · Issue #3238 · airbnb/javascript

Description: Summary When CLIEngine is not available (e.g. ESLint 9), whitespace.js loads the config by running whitespace-async.js with execSync and then doing JSON.parse(String(...)) on the result. There is no try/catch around this. Impact If the c...

Open Graph Description: Summary When CLIEngine is not available (e.g. ESLint 9), whitespace.js loads the config by running whitespace-async.js with execSync and then doing JSON.parse(String(...)) on the result. There is n...

X Description: Summary When CLIEngine is not available (e.g. ESLint 9), whitespace.js loads the config by running whitespace-async.js with execSync and then doing JSON.parse(String(...)) on the result. There is n...

Opengraph URL: https://github.com/airbnb/javascript/issues/3238

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path)","articleBody":"## Summary\nWhen `CLIEngine` is not available (e.g. ESLint 9), `whitespace.js` loads the config by running `whitespace-async.js` with `execSync` and then doing `JSON.parse(String(...))` on the result. There is no try/catch around this.\n\n## Impact\n- If the child script exits non-zero, prints errors, or prints non-JSON (e.g. ESLint timing or debug output), `execSync` may throw or return non-JSON.\n- `JSON.parse` will then throw and the config load fails with a generic parsing error, making it hard to see that the real failure was in the child script.\n\n## Affected files\n- `packages/eslint-config-airbnb-base/whitespace.js`  (line 55)\n- `packages/eslint-config-airbnb/whitespace.js`   (line 55)\n\n## Suggested fix\nWrap the `execSync` call and `JSON.parse` in try/catch and rethrow with a clear message (and optionally `cause: err`) so failures are easier to diagnose.\n\n## screenshot\n\n\u003cimg width=\"1574\" height=\"363\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/55300261-9c27-4096-b8e1-3aafd1a7728b\" /\u003e\n\nI'd love to work on this.","author":{"url":"https://github.com/dataCenter430","@type":"Person","name":"dataCenter430"},"datePublished":"2026-03-05T19:18:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/3238/javascript/issues/3238"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:54d267ce-0485-426c-881d-283857c84f2c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8CC:30AF96:1A18A4:2301C3:6A5EC81F
html-safe-noncee4f3adacc345f8320b531080991ad3f6ef879a4da9e4f82cdeba80b51c22fa79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOENDOjMwQUY5NjoxQTE4QTQ6MjMwMUMzOjZBNUVDODFGIiwidmlzaXRvcl9pZCI6Ijg5MTE5MTc5MTQyMDYyMjg3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc7b5800a4f63cbc21dc1997d2d2acf493d0ed8658a13ae48b0da021d7262916a
hovercard-subject-tagissue:4030110086
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/airbnb/javascript/3238/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6beba750217f099ef2e421d159e33d4dd66037d0976b718d2e57cca1bd9e4f86/airbnb/javascript/issues/3238
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6beba750217f099ef2e421d159e33d4dd66037d0976b718d2e57cca1bd9e4f86/airbnb/javascript/issues/3238
og:image:altSummary When CLIEngine is not available (e.g. ESLint 9), whitespace.js loads the config by running whitespace-async.js with execSync and then doing JSON.parse(String(...)) on the result. There is n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedataCenter430
hostnamegithub.com
expected-hostnamegithub.com
Nonefbe2b3a3baf2f0e0ac1671a4d190d9de098dcf218eb73137ad46da364d3df398
turbo-cache-controlno-preview
go-importgithub.com/airbnb/javascript git https://github.com/airbnb/javascript.git
octolytics-dimension-user_id698437
octolytics-dimension-user_loginairbnb
octolytics-dimension-repository_id6498492
octolytics-dimension-repository_nwoairbnb/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id6498492
octolytics-dimension-repository_network_root_nwoairbnb/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0cd844a7ab298ec8d89b66ef4b195d158229d335
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/airbnb/javascript/issues/3238#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fairbnb%2Fjavascript%2Fissues%2F3238
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fairbnb%2Fjavascript%2Fissues%2F3238
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=airbnb%2Fjavascript
Reloadhttps://github.com/airbnb/javascript/issues/3238
Reloadhttps://github.com/airbnb/javascript/issues/3238
Reloadhttps://github.com/airbnb/javascript/issues/3238
Please reload this pagehttps://github.com/airbnb/javascript/issues/3238
airbnb https://github.com/airbnb
javascripthttps://github.com/airbnb/javascript
Notifications https://github.com/login?return_to=%2Fairbnb%2Fjavascript
Fork 26.6k https://github.com/login?return_to=%2Fairbnb%2Fjavascript
Star 148k https://github.com/login?return_to=%2Fairbnb%2Fjavascript
Code https://github.com/airbnb/javascript
Issues 100 https://github.com/airbnb/javascript/issues
Pull requests 61 https://github.com/airbnb/javascript/pulls
Actions https://github.com/airbnb/javascript/actions
Wiki https://github.com/airbnb/javascript/wiki
Security and quality 0 https://github.com/airbnb/javascript/security
Insights https://github.com/airbnb/javascript/pulse
Code https://github.com/airbnb/javascript
Issues https://github.com/airbnb/javascript/issues
Pull requests https://github.com/airbnb/javascript/pulls
Actions https://github.com/airbnb/javascript/actions
Wiki https://github.com/airbnb/javascript/wiki
Security and quality https://github.com/airbnb/javascript/security
Insights https://github.com/airbnb/javascript/pulse
#3239https://github.com/airbnb/javascript/pull/3239
No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path)https://github.com/airbnb/javascript/issues/3238#top
#3239https://github.com/airbnb/javascript/pull/3239
https://github.com/dataCenter430
dataCenter430https://github.com/dataCenter430
on Mar 5, 2026https://github.com/airbnb/javascript/issues/3238#issue-4030110086
https://private-user-images.githubusercontent.com/161712630/558914793-55300261-9c27-4096-b8e1-3aafd1a7728b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ1OTY4MTIsIm5iZiI6MTc4NDU5NjUxMiwicGF0aCI6Ii8xNjE3MTI2MzAvNTU4OTE0NzkzLTU1MzAwMjYxLTljMjctNDA5Ni1iOGUxLTNhYWZkMWE3NzI4Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcyMVQwMTE1MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YmYzYTBlZWI2NmJhNzI1OWM1OTJlMDQ4ZjIxYmU2MjgwYzlhZTcyYWUyY2E3MmMyYTNkMTc0ZTRhYjcyYzcyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.MCdqBXCKQZFDC-JkOIJ_vcAxcNYwtvQz7MmVxgTffaI
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.