From 527c3fe4fa453ef806b26bfa2265b27c3b638f34 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Sat, 30 Sep 2017 14:07:04 +0200 Subject: [PATCH 1/2] chore(vscode): ease flow usage Following https://github.com/flowtype/flow-for-vscode#setup they recommend setting `"javascript.validate.enable": false` in workspace settings, otherwise I get errors like "... can only be used in a .ts file". As I am new to flow and vscode I might be wrong, let me know vscode users contributing to Jest how it works for you today? --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f25eef6ad02f..5481cadfb6cb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,5 +12,6 @@ "prettier.trailingComma": "all", "prettier.semi": true, "editor.formatOnSave": true, - "prettier.eslintIntegration": true + "prettier.eslintIntegration": true, + "javascript.validate.enable": false } From 1527bea340dbd0a6f7f066ddc2dfaaec63ce2e3a Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Sat, 30 Sep 2017 18:43:07 +0100 Subject: [PATCH 2/2] Update settings.json --- .vscode/settings.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5481cadfb6cb..d0188f92d5cb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,18 @@ { - "jest.pathToJest": "yarn jest --", "editor.rulers": [80], "files.exclude": { "**/.git": true, "**/node_modules": true, "**/build": true }, + "editor.formatOnSave": true, + "flow.useNPMPackagedFlow": true, + "javascript.validate.enable": false, + "jest.pathToJest": "yarn jest --", + "prettier.eslintIntegration": true, "prettier.parser": "flow", "prettier.printWidth": 80, - "prettier.singleQuote": true, - "prettier.trailingComma": "all", "prettier.semi": true, - "editor.formatOnSave": true, - "prettier.eslintIntegration": true, - "javascript.validate.enable": false + "prettier.singleQuote": true, + "prettier.trailingComma": "all" }