From 94482f9782095ac8d485d60c2bda910615da529b Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Thu, 11 May 2023 07:30:07 -0700 Subject: [PATCH] limit vscode code action apply to eslint only Summary: I accidentally used vscode. I acctidentally used an await keyword in a sync funciton. typescript has an codeaction to add an async to the function which was out of my screen. This changed the function return type to promise which caused other errors around the codebase and it took me a while to figure out where the error was coming from. All eslint code actions are safe to apply which is not the case with typescript. Thus making this change. Reviewed By: lblasa Differential Revision: D45773531 fbshipit-source-id: 1f8835c442d7703644b1af729ab55fcef7d5be73 --- desktop/.vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/.vscode/settings.json b/desktop/.vscode/settings.json index 026519bec..e0adea9ae 100644 --- a/desktop/.vscode/settings.json +++ b/desktop/.vscode/settings.json @@ -8,7 +8,7 @@ "prettier.formatAlreadyFormattedFilesOnSave": false, "files.eol": "\n", "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll.eslint": true }, "eslint.workingDirectories": [ {