Переглянути джерело

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

Typescript ESLint: Add indent rule for d.ts files
Mr.doob 6 роки тому
батько
коміт
15aaee80c9
1 змінених файлів з 8 додано та 1 видалено
  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": {