From 3bd453bf73082e14830fcc7567352eb028e0df2e Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 26 Nov 2024 15:17:36 +0300 Subject: [PATCH] README.md: add .prettierrc config --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c847f97..626ac95 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,6 @@ Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?it "source.fixAll.eslint": "explicit", "source.removeUnusedImports": "explicit" }, - "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "eslint.lintTask.enable": true, "eslint.validate": [ @@ -82,3 +81,25 @@ Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?it ] } ``` + +Recomended **.prettierrc**: + +```json +{ + "arrowParens": "always", + "bracketSameLine": false, + "bracketSpacing": true, + "endOfLine": "auto", + "insertPragma": false, + "jsxSingleQuote": false, + "printWidth": 100, + "proseWrap": "preserve", + "quoteProps": "as-needed", + "requirePragma": false, + "semi": true, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "all", + "useTabs": false +} +```