From b1c8e8c414a784741a676f3a1d8f79ff44760c3b Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 26 Nov 2024 16:42:56 +0300 Subject: [PATCH] add .prettierrc --- .prettierrc | 17 +++++++++++++++++ .vscode/settings.json | 27 ++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ad63859 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,17 @@ +{ + "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 +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 44a73ec..0a4e675 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,32 @@ { + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.fixAll.eslint": "explicit", + "source.removeUnusedImports": "explicit" + }, + "editor.formatOnSave": true, + "eslint.lintTask.enable": true, + "eslint.validate": [ + "javascript", + "javascriptreact", + "json", + "typescript", + "typescriptreact", + "yaml" + ], "eslint.workingDirectories": [ { "mode": "auto" } - ] + ], + "explorerExclude.backup": {}, + "files.exclude": { + "**/.DS_Store": true, + "**/.git": true, + "**/.hg": true, + "**/.svn": true, + "**/CVS": true, + "**/node_modules": true, + "**/Thumbs.db": true + } }