From 80524220b33e275a3e4bc0616bc85d204e5947fe Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Tue, 22 Oct 2019 08:45:11 -0700 Subject: [PATCH] Updated install instructions for VSCode Summary: Following the existing installation instructions for VSCode, TypeScript code was not formatted or linted out of the box Reviewed By: passy Differential Revision: D18061117 fbshipit-source-id: bedb57de47f4e880449d859b0dce2dd18f5f2995 --- DEV_ENVIRONMENT.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DEV_ENVIRONMENT.md b/DEV_ENVIRONMENT.md index 2f3644959..58c4bce71 100644 --- a/DEV_ENVIRONMENT.md +++ b/DEV_ENVIRONMENT.md @@ -10,13 +10,19 @@ The flipper desktop source uses Flow, TypeScript, and ESLint. Feel free to use y * ESLint * Flow Language Support * TypeScript and JavaScript Language Features (enabled by default) - + **Settings**: ```json { "flow.useNPMPackagedFlow": true, "javascript.validate.enable": false, - "eslint.autoFixOnSave": true + "eslint.autoFixOnSave": true, + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + {"language":"typescriptreact", "autoFix": true} + ], } ```