Pārlūkot izejas kodu

add indent rule for typescript

Garrett Johnson 6 gadi atpakaļ
vecāks
revīzija
e84a71ab66
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      package.json

+ 8 - 1
package.json

@@ -32,7 +32,14 @@
       "@typescript-eslint"
     ],
     "rules": {
-      "@typescript-eslint/no-unused-vars": 1
+      "@typescript-eslint/no-unused-vars": 1,
+      "@typescript-eslint/indent": [
+        "error",
+        "tab",
+        {
+          "SwitchCase": 1
+        }
+      ]
     }
   },
   "scripts": {