Skip to content

Commit

Permalink
chore(vscode): ease flow usage (jestjs#4569)
Browse files Browse the repository at this point in the history
* 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?

* Update settings.json
  • Loading branch information
vvo authored and tabrindle committed Oct 2, 2017
1 parent 17e1d9c commit 9c2b802
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +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
"prettier.singleQuote": true,
"prettier.trailingComma": "all"
}

0 comments on commit 9c2b802

Please sign in to comment.