Browse Source

configure vscode to lint and format fix on file save

Mokhtar Naamani 4 years ago
parent
commit
fdb1f44b74
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .vscode/settings.json

+ 10 - 0
.vscode/settings.json

@@ -0,0 +1,10 @@
+{
+  // "editor.defaultFormatter": null,
+  "editor.formatOnSave": false,
+  "editor.codeActionsOnSave": {
+    "source.fixAll.eslint": true
+  },
+  // == Avoid using prettier plugin to format ==
+  // "prettier.requireConfig": true,
+  // "editor.defaultFormatter": "esbenp.prettier-vscode",
+}