Przeglądaj źródła

Add prettier options

Loris Leiva 1 rok temu
rodzic
commit
541694aca5
2 zmienionych plików z 28 dodań i 0 usunięć
  1. 11 0
      .prettierignore
  2. 17 0
      .prettierrc

+ 11 - 0
.prettierignore

@@ -0,0 +1,11 @@
+**/.git
+**/.github
+**/node_modules
+**/projects
+**/docs
+**/tsconfig.*.json
+**/tsconfig.json
+
+.prettierrc
+package.json
+README.md

+ 17 - 0
.prettierrc

@@ -0,0 +1,17 @@
+{
+  "semi": true,
+  "singleQuote": true,
+  "trailingComma": "es5",
+  "useTabs": false,
+  "tabWidth": 2,
+  "arrowParens": "always",
+  "printWidth": 80,
+  "overrides": [
+    {
+      "files": ["*.mts", "*.cts", "*.ts"],
+      "options": {
+        "parser": "typescript"
+      }
+    }
+  ]
+}