From 71d06081e134f075f0a33e02cc1a6c50ea5855b3 Mon Sep 17 00:00:00 2001 From: Maurelian Date: Thu, 17 Jun 2021 09:35:02 -0400 Subject: [PATCH 1/3] chore: add minimal vscode settings and extensions --- .vscode/extensions.json | 12 ++++++++++++ .vscode/settings.json | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000000..3fe6dbea1fc8 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,12 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + "esbenp.prettier-vscode", + "editorconfig.editorconfig", + "juanblanco.solidity", + "golang.go", + ], +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..e31517bdd577 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + }, + "prettier.configPath": "./.prettierrc.json", + "prettier.ignorePath": "", + "prettier.prettierPath": "./.node_modules/prettier", + "prettier.useEditorConfig": true, + "editorconfig.generateAuto": false, +} From cb095479a334ffc0800d34a07ec748ada7b870aa Mon Sep 17 00:00:00 2001 From: Maurelian Date: Thu, 17 Jun 2021 11:41:33 -0400 Subject: [PATCH 2/3] chore: Add "files.trimTrailingWhitespace" to vscode native config --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index e31517bdd577..7bfe6961dac4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,4 +8,5 @@ "prettier.prettierPath": "./.node_modules/prettier", "prettier.useEditorConfig": true, "editorconfig.generateAuto": false, + "files.trimTrailingWhitespace": true, } From e5bbe67aa66d1a45277d71a731289834e022dc01 Mon Sep 17 00:00:00 2001 From: Maurelian Date: Thu, 17 Jun 2021 13:22:26 -0400 Subject: [PATCH 3/3] chore: replace vscode prettier plugin with eslint plugin --- .vscode/extensions.json | 2 +- .vscode/settings.json | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 3fe6dbea1fc8..db78da54acff 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,7 +4,7 @@ // List of extensions which should be recommended for users of this workspace. "recommendations": [ - "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", "editorconfig.editorconfig", "juanblanco.solidity", "golang.go", diff --git a/.vscode/settings.json b/.vscode/settings.json index 7bfe6961dac4..a7defeb9329f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,11 @@ { + "editor.formatOnSave": true, "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.formatOnSave": true, }, - "prettier.configPath": "./.prettierrc.json", - "prettier.ignorePath": "", - "prettier.prettierPath": "./.node_modules/prettier", - "prettier.useEditorConfig": true, + "eslint.nodePath": "./node_modules/eslint/bin/", + "eslint.format.enable": true, "editorconfig.generateAuto": false, "files.trimTrailingWhitespace": true, }