Skip to content

fix(whitespace): add error handling around execSync and JSON.parse (#3238) - #3306

Open
loulanyue wants to merge 1 commit into
airbnb:masterfrom
loulanyue:fix/whitespace-exec-error-handling
Open

fix(whitespace): add error handling around execSync and JSON.parse (#3238)#3306
loulanyue wants to merge 1 commit into
airbnb:masterfrom
loulanyue:fix/whitespace-exec-error-handling

Conversation

@loulanyue

Copy link
Copy Markdown

Fixes #3238.

Wraps execSync and JSON.parse in whitespace.js (both in packages/eslint-config-airbnb and packages/eslint-config-airbnb-base) with a try/catch block that rethrows a descriptive error message indicating the failure source when whitespace-async.js fails or produces unexpected non-JSON output.

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.

No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path)

1 participant