diff --git a/.prettierrc.js b/.prettierrc.js index 6342f131a0cf6..43f9b6671c326 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -14,6 +14,12 @@ module.exports = { parser: 'flow', arrowParens: 'avoid', overrides: [ + { + files: ['*.code-workspace'], + options: { + parser: 'json-stringify', + }, + }, { files: esNextPaths, options: { diff --git a/react.code-workspace b/react.code-workspace new file mode 100644 index 0000000000000..d952c23aa9e53 --- /dev/null +++ b/react.code-workspace @@ -0,0 +1,28 @@ +{ + "folders": [ + { + "path": "." + } + ], + "extensions": { + "recommendations": [ + "dbaeumer.vscode-eslint", + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "flowtype.flow-for-vscode" + ] + }, + "settings": { + "editor.formatOnSave": true, + "flow.pathToFlow": "${workspaceFolder}/node_modules/.bin/flow", + "javascript.validate.enable": false, + "search.useIgnoreFiles": true, + "search.exclude": { + "**/dist/**": true, + "**/build/**": true, + "**/out/**": true, + "*.map": true, + "*.log": true + } + } +}