Browse Source

VSCode ESLint Integration (#1529)

Vishnu Mohandas 1 year ago
parent
commit
f0113e0830
1 changed files with 23 additions and 2 deletions
  1. 23 2
      .vscode/settings.json

+ 23 - 2
.vscode/settings.json

@@ -1,8 +1,29 @@
 {
+    "eslint.validate": [
+        {
+            "language": "typescript",
+            "autoFix": true
+        },
+        {
+            "language": "typescriptreact",
+            "autoFix": true
+        },
+        {
+            "language": "javascript",
+            "autoFix": true
+        },
+        {
+            "language": "javascriptreact",
+            "autoFix": true
+        }
+    ],
+    "prettier.singleQuote": true,
     "typescript.tsdk": "node_modules/typescript/lib",
-    "typescript.enablePromptUseWorkspaceTsdk": true,
+    "editor.formatOnSave": true,
     "editor.defaultFormatter": "esbenp.prettier-vscode",
+    "editor.formatOnPaste": true,
     "editor.codeActionsOnSave": {
-        "source.fixAll.eslint": true
+        "source.fixAll": true
     },
+    "typescript.enablePromptUseWorkspaceTsdk": true
 }