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..16ff05dce9ef2 --- /dev/null +++ b/react.code-workspace @@ -0,0 +1,30 @@ +{ + "folders": [ + { + "path": "." + } + ], + "extensions": { + "recommendations": [ + "dbaeumer.vscode-eslint", + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "flowtype.flow-for-vscode" + ] + }, + "settings": { + "search.exclude": { + "**/dist/**": true, + "**/build/**": true, + "**/out/**": true, + "*.map": true, + "*.log": true + }, + "javascript.validate.enable": false, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "flow.pathToFlow": "${workspaceFolder}/node_modules/.bin/flow", + "prettier.configPath": "", + "prettier.ignorePath": "" + } +}