Files
flipper/.vscode/settings.json
Michel Weststrate 8b2d8498e6 Upgrade to TypeScript 3.9
Summary:
Upgrading to TypeScript 3.9 so that we can use `// ts-expect-error`, that allows us to basically write unit tests for typings.

Fixed the typescript path in `settings.json`, because otherwise VSCode kept picking the built-in version (3.8.3 atm) of ts when opening the `sonar` folder as workspace.

Reviewed By: passy

Differential Revision: D22255818

fbshipit-source-id: ae54aedb237445f32f1797b4290656dbfb0e528f
2020-07-01 09:12:36 -07:00

38 lines
1.2 KiB
JSON

{
"eslint.enable": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.packageManager": "yarn",
"eslint.codeActionsOnSave.mode": "all",
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": false, // This one is broken as it cleans string literals as well, killing Jest snapshots: https://github.com/Microsoft/vscode/issues/52711
"prettier.formatAlreadyFormattedFilesOnSave": false,
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"jest.autoEnable": false,
"jest.enableInlineErrorMessages": true,
"jest.runAllTestsFirst": false,
"jest.pathToConfig": "desktop/jest.config.js",
"jest.pathToJest": "desktop/node_modules/.bin/jest",
"typescript.tsdk": "desktop/node_modules/typescript/lib"
}