Procházet zdrojové kódy

Merge pull request #16588 from gkjohnson/eslint-ts-indent-fix

Typescript ESLint: Add indent rule for d.ts files
Mr.doob před 6 roky
rodič
revize
15aaee80c9
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  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": {